time Timers - tadashi9e/gmp4pony GitHub Wiki
A hierarchical set of timing wheels.
actor tag Timers is
AsioEventNotify tag- AsioEventNotify tag
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.
new tag create(
slop: USize val = 20)
: Timers tag^- slop: USize val = 20
- Timers tag^
Sets a timer. Fire it if need be, schedule it on the right timing wheel, then rearm the timer.
be apply(
timer: Timer iso)- timer: Timer iso
Cancels a timer.
be cancel(
timer: Timer tag)- timer: Timer tag
Dispose of this set of timing wheels.
be dispose()