Timers¶
A hierarchical set of timing wheels.
Implements¶
- AsioEventNotify tag
Constructors¶
create¶
Create a timer handler with the specified number of slop bits. No slop bits means trying for nanosecond resolution. 10 slop bits is approximately microsecond resolution, 20 slop bits is approximately millisecond resolution.
Parameters¶
- slop: USize val = 20
Returns¶
- Timers tag^
Public Behaviours¶
apply¶
Sets a timer. Fire it if need be, schedule it on the right timing wheel, then rearm the timer.
Parameters¶
- timer: Timer iso
cancel¶
Cancels a timer.
Parameters¶
- timer: Timer tag
dispose¶
Dispose of this set of timing wheels.