Skip to main content

fmt_dur

Function fmt_dur 

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

Convert a Duration to a short label like “1.2s” or “340ms”.