eve.core.kqueue.timers

Timer support for the kqueue event loop.

This module provides CLOCK_MONOTONIC-based timer helpers used by the kqueue event loop. It mirrors the Windows timers module but uses POSIX monotonic time instead of QueryPerformanceCounter.

struct TimerState

Types 1

Kqueue monotonic-clock-based timer state.

Wraps CLOCK_MONOTONIC to provide millisecond-precision timing for the event loop timer wheel.

Fields
long _startTimeMs
Methods
void initialize(ref TimerWheel timerWheel) @trusted nothrowInitialize the timer state and reset the timer wheel.
long currentTimeMs() @trusted nothrow @nogcGet the elapsed time in milliseconds since initialization.