chrono
chrono copied to clipboard
Add (try_)from_secs_f64, (try_)from_millis_f64, as_millis_f64 and as_secs_f64 to TimeDelta
This allows converting a floating point representation of millis/secs into durations, just like std::time::Duration has.
I think this could make sense -- want to submit a PR?