Skip to main content

format_duration

Function format_duration 

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

Format duration in a human-readable way: “Xs” for <60s, “Xm Ys” for >=60s