Module time

Source
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.
TimeoutChecked
Future returned by timeout_checked.
TimerHandle

Functions§

deadline
Waits until duration has elapsed.
interval
Creates new Interval that yields with interval of period.
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.