Expand description
Utilities for tracking time.
Re-exports§
Modules§
- error
- Time error types.
Structs§
- Interval
- Interval returned by
interval
andinterval_at
. - Sleep
- Future returned by
sleep
andsleep_until
. - Time
Handle - Handle to a shared time source.
Enums§
- Missed
Tick Behavior - Defines the behavior of an
Interval
when it misses a tick.
Functions§
- advance
madsim
- Advances time.
- interval
- Creates new
Interval
that yields with interval ofperiod
. - interval_
at - Creates new
Interval
that yields with interval ofperiod
with the first tick completing atstart
. - sleep
- Waits until
duration
has elapsed. - sleep_
until - Waits until
deadline
is reached. - timeout
- Require a
Future
to complete before the specified duration has elapsed.