Expand description
Utilities for tracking time.
Structs§
- Deadline
- Future returned by
deadline. - Interval
- An interval returned by
interval. - Millis
- A span of time in milliseconds, for timeouts.
- Seconds
- A span of time in whole seconds.
- Sleep
- Future returned by
sleep. - Timeout
- Future returned by
timeout. - Timeout
Checked - Future returned by
timeout_checked. - Timer
Handle - Handle to a timer registered with ntex’s local timer wheel.
Functions§
- deadline
- Waits until
durhas elapsed. - interval
- Creates an
Intervalthat ticks everyperiod. - now
- Returns a cached approximation of the current instant.
- sleep
- Waits until
durhas elapsed. - system_
time - Returns a cached approximation of the current system time.
- timeout
- Requires a future to complete before
durhas elapsed. - timeout_
checked - Requires a future to complete before
durhas elapsed.