Skip to main content

format_duration

Function format_duration 

Source
fn format_duration(seconds: f64) -> String
Expand description

Format duration to show appropriate precision.

  • < 1s: show 2 decimal places
  • = 1s: show 1 decimal place