Convenience and compatibility alias.
Sets the timer to absolute or relative mode.
Timer expiration event handler.
Returns the next expiration time.
Sets next expiration time of interval timer.
Sets next expiration time of interval timer.
Resets/disarms the timer.
Required by ISelectable interface.
Event handler, invoked by the epoll select dispatcher.
Returns an identifier string for this instance
Test for setting absolute timers
timespec now; clock_gettime(CLOCK_MONOTONIC, &now); auto timer = new TestTimerEvent; timer.absolute = true; auto set_time = now; set_time.tv_sec += 10; timer.set(set_time); auto get_time = timer.time(); ulong nsec = (get_time.it_value.tv_sec * 1_000_000_000) + get_time.it_value.tv_nsec; test!("<=")(nsec, 10_000_000_000);