Skip to content

Commit

Permalink
Remove units from the Stopwatch status reporting - the time basis doe…
Browse files Browse the repository at this point in the history
…s not need to be seconds, so it does not make sense to hard code that in the status reporting
  • Loading branch information
ndebuhr committed Jul 2, 2021
1 parent aa14825 commit dfd5d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/src/models/stopwatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ impl AsModel for Stopwatch {
.map(|(_, duration)| duration)
.collect();
format![
"Average {:.3} sec",
"Average {:.3}",
durations.iter().sum::<f64>() / durations.len() as f64
]
}
Expand Down

0 comments on commit dfd5d02

Please sign in to comment.