pub fn timespec_to_duration(ts: timespec) -> Duration
Convert a platform specific timespec into a Duration.
timespec