From 259d848e9e8ff7191716f675bad67b09bc38c519 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 1 Jun 2022 02:41:24 -0400 Subject: [PATCH] adjust formatting of time --- src/math_app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math_app.rs b/src/math_app.rs index a9bb83b..ebba0a1 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -647,7 +647,7 @@ impl App for MathApp { }); // Calculate and store the last time it took to draw the frame - self.last_info.1 = start.map(|a| format!("Took: {:?}", a.elapsed())); + self.last_info.1 = start.map(|a| format!("Took: {}ms", a.elapsed().as_micros())); } fn clear_color(&self, _visuals: &egui::Visuals) -> egui::Rgba {