Expand description
Utilities for tracking time.
Structs§
- Deadline
- Future returned by
deadline
. - Interval
- Interval returned by
interval
- Millis
- A Duration type to represent a span of time.
- Seconds
- A Seconds type to represent a span of time in seconds.
- Sleep
- Future returned by
sleep
. - Timeout
- Future returned by
timeout
. - Timeout
Checked - Future returned by
timeout_checked
. - Timer
Handle
Functions§
- deadline
- Waits until
duration
has elapsed. - interval
- Creates new
Interval
that yields with interval ofperiod
. - now
- Returns an instant corresponding to “now”.
- sleep
- Waits until
duration
has elapsed. - system_
time - Returns the system time corresponding to “now”.
- timeout
- Require a
Future
to complete before the specified duration has elapsed. - timeout_
checked - Require a
Future
to complete before the specified duration has elapsed.