Skip to main content

duration_seconds

Function duration_seconds 

Source
fn duration_seconds(ms: i64) -> f64
Expand description

Go’s time.Duration.Seconds of ms milliseconds: whole seconds plus the remainder over 1e9, two roundings rather than one division. The nanosecond count saturates as time.Time.Sub does.