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 Duration type to represent a span of time, typically used for system timeouts.

Instant

A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

Functions

set_timer

Set the instant timestamp generator, which must always returns non-decreasing nano seconds. The absolute value of such timestamp is meaningless.