Function format_duration

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

Returns a formated string from the duration.

  • 1 -> 1s
  • 60 -> 1m
  • 90 -> 1m30s