Expand description
Lightweight timer for systems with high rate of operations with timeout associated with them
Users don’t need to interact with this module.
The idea is to bucket timers into finite time slots so that operations that start and end quickly don’t have to create their own timers all the time
Benchmark:
- create 7.809622ms total, 78ns avg per iteration
- drop: 1.348552ms total, 13ns avg per iteration
tokio timer:
- create 34.317439ms total, 343ns avg per iteration
- drop: 10.694154ms total, 106ns avg per iteration
Structs§
- The object that holds all the timers registered to it.
- the stub for waiting for a timer to be expired.