pub fn timeval_to_duration(tv: timeval) -> Duration
Convert a platform specific timeval into a Duration.
timeval