pub fn timespec_to_duration(ts: timespec) -> Duration
Expand description

Convert a platform specific timespec into a Duration.