pub fn f64_to_duration(duration: f64) -> Duration
Converts an f64 to a std::time::Duration.
f64
std::time::Duration