adjust formatting of time

This commit is contained in:
Simon Gardling
2022-06-01 02:41:24 -04:00
parent 1c9f605c43
commit 259d848e9e

View File

@@ -647,7 +647,7 @@ impl App for MathApp {
}); });
// Calculate and store the last time it took to draw the frame // 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 { fn clear_color(&self, _visuals: &egui::Visuals) -> egui::Rgba {