Expand description
Utilities for tracking time.
Re-exports
pub use self::wheel::query_system_time;
Structs
- Future returned by
deadline. - Interval returned by
interval - A Duration type to represent a span of time.
- A Seconds type to represent a span of time in seconds.
- Future returned by
sleep. - Future returned by
timeout. - Future returned by
timeout_checked.
Functions
- Waits until
durationhas elapsed. - Creates new
Intervalthat yields with interval ofperiod. - Returns an instant corresponding to “now”.
- Waits until
durationhas elapsed. - Returns the system time corresponding to “now”.
- Require a
Futureto complete before the specified duration has elapsed. - Require a
Futureto complete before the specified duration has elapsed.