From dfd5d023d529b2677b7b0e952fce11278b32e916 Mon Sep 17 00:00:00 2001 From: ndebuhr Date: Fri, 2 Jul 2021 03:05:28 +0000 Subject: [PATCH] Remove units from the Stopwatch status reporting - the time basis does not need to be seconds, so it does not make sense to hard code that in the status reporting --- sim/src/models/stopwatch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/src/models/stopwatch.rs b/sim/src/models/stopwatch.rs index 8a83d1a..780f848 100644 --- a/sim/src/models/stopwatch.rs +++ b/sim/src/models/stopwatch.rs @@ -276,7 +276,7 @@ impl AsModel for Stopwatch { .map(|(_, duration)| duration) .collect(); format![ - "Average {:.3} sec", + "Average {:.3}", durations.iter().sum::() / durations.len() as f64 ] }