Function duration_to_float

Source
pub fn duration_to_float(duration: Duration) -> f64
Expand description

Converts the duration into a number of seconds with fractions.

(There’s now a native Duration::as_secs_f64.)