Module time
Temporal quantification.
Examples:
There are multiple ways to create a new [Duration]:
# use Duration;
let five_seconds = from_secs;
assert_eq!;
assert_eq!;
assert_eq!;
let ten_seconds = from_secs;
let seven_nanos = from_nanos;
let total = ten_seconds + seven_nanos;
assert_eq!;
Structs
-
Duration
A
Durationtype to represent a span of time, typically used for system timeouts. -
TryFromFloatSecsError
An error which can be returned when converting a floating-point value of seconds
into a
Duration.