diff --git a/src/counters/timer.rs b/src/counters/timer.rs index ad8b514d..54bd0a3c 100644 --- a/src/counters/timer.rs +++ b/src/counters/timer.rs @@ -55,7 +55,7 @@ impl Timer { /// The measured time between the last `.start()` and `.pause()` calls. pub fn time(&self) -> f64 { - self.time.as_secs_f64() / 1000.0 + self.time.as_secs_f64() * 1000.0 } } diff --git a/src_testbed/ui.rs b/src_testbed/ui.rs index b90f751f..c568495c 100644 --- a/src_testbed/ui.rs +++ b/src_testbed/ui.rs @@ -461,7 +461,7 @@ Hashes at frame: {} |_ &RigidBodySet [{:.1}KB]: {} |_ Colliders [{:.1}KB]: {} |_ Joints [{:.1}KB]: {}"#, - serialization_time.as_secs_f64() / 1000.0, + serialization_time.as_secs_f64() * 1000.0, timestep_id, bf.len() as f32 / 1000.0, format!("{:?}", hash_bf).split_at(10).0,