Skip to main content

format_duration

Function format_duration 

Source
pub fn format_duration(d: Duration) -> String
Expand description

Format a Duration in human-readable compact form.

Examples: "<1s", "3s", "0.2s", "1m7s", "7m20s", "1h5m".