pub fn elapsed(duration: Duration) -> String {
    let secs = duration.as_secs();

    if secs >= 60 {
        format!("{}m {:02}s", secs / 60, secs % 60)
    } else {
        format!("{}.{:02}s", secs, duration.subsec_nanos() / 10_000_000)
    }
}
/// Render a `Duration` to a form suitable for display on a console
Render a `Duration` to a form suitable for display on a console
Render a ` Duration ` to a form suitable for display on a console
pub fn elapsed(duration: Duration) -> String {
    let secs = duration.as_secs();
    if secs >= 60 {
        format!("{}m {:02}s", secs / 60, secs % 60)
    } else {
        format!("{}.{:02}s", secs, duration.subsec_nanos() / 10_000_000)
    }
}
pub fn elapsed ( duration : Duration ) -> String { let secs = duration . as_secs ( ) ; if secs >= 60 { format ! ( " " secs 60 secs 60 ) } else { format ! ( " " secs duration subsec_nanos ( ) 10_000_000 ) } }
Render a `Duration` to a form suitable for display on a console
Render a ` Duration ` to a form suitable for display on a console
duration
Duration