Module ksched::time [−][src]
Expand description
Temporal quantification.
Example:
use ksched::time::Duration; let five_seconds = Duration::new(5, 0); // both declarations are equivalent assert_eq!(Duration::new(5, 0), Duration::from_secs(5));
Structs
Duration | A |
Instant | A measurement of a monotonically nondecreasing clock.
Opaque and useful only with |
Functions
set_timer | Set the instant timestamp generator, which must always returns non-decreasing nano seconds. The absolute value of such timestamp is meaningless. |