Skip to content

Commit

Permalink
TUI replace debug values with microseconds
Browse files Browse the repository at this point in the history
Basically everything is sub 0.1ms now
  • Loading branch information
Beinsezii committed Aug 28, 2024
1 parent 8de1921 commit a3edb69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ impl<T: Backend> UI<T> {
if self.debug {
f.render_widget(
Paragraph::new(format!(
"Draws: {} timeO: {:.2}ms timeS: {:.2}ms timeA: {:.2}ms timeP: {:.2}ms timeQ: {:.2}ms",
"Draws: {: <4} timeO: {: <4} timeS: {: <4} timeA: {: <4} timeP: {: <4} timeQ: {: <4}",
self.draw_count,
(time_other2 - time_other).as_secs_f64() * 1000.0,
(time_seekbar2 - time_seekbar).as_secs_f64() * 1000.0,
(time_art2 - time_art).as_secs_f64() * 1000.0,
(time_panes2 - time_panes).as_secs_f64() * 1000.0,
(time_queue2 - time_queue).as_secs_f64() * 1000.0,
(time_other2 - time_other).as_micros(),
(time_seekbar2 - time_seekbar).as_micros(),
(time_art2 - time_art).as_micros(),
(time_panes2 - time_panes).as_micros(),
(time_queue2 - time_queue).as_micros(),
))
.style(self.stylesheet.base),
debug_area,
Expand Down

0 comments on commit a3edb69

Please sign in to comment.