Skip to content

Commit

Permalink
fix second to millisecond 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 5, 2024
1 parent 566933b commit 43ed24d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/counters/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion src_testbed/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 43ed24d

Please sign in to comment.