diff --git a/doc/html/timer.html b/doc/html/timer.html index 81d2099..3c1ae73 100644 --- a/doc/html/timer.html +++ b/doc/html/timer.html @@ -82,7 +82,10 @@

Details and Usage

is supported, be aware that it rarely makes sense to do so; the timer is not guaranteed to expire after the specified interval (if the system clock is adjusted, the adjustment will also be applied to the timeout). Use a timer against the MONOTONIC clock if you need a specific interval -of time.

+of time.

+ +

An absolute timeout of 0:0 is not supported (some timer backends use it internally to disable the +associated system timer).

Subclassing timer

diff --git a/tests/dasynq-tests.cc b/tests/dasynq-tests.cc index d7f276a..48a5e93 100644 --- a/tests/dasynq-tests.cc +++ b/tests/dasynq-tests.cc @@ -1057,7 +1057,7 @@ void ftest_timers() }; my_timer timer_1; - struct timespec timeout_1 = { .tv_sec = 0, .tv_nsec = 0 }; + struct timespec timeout_1 = { .tv_sec = 0, .tv_nsec = 1 }; timer_1.add_timer(my_loop, clock_type::MONOTONIC); timer_1.arm_timer(my_loop, timeout_1);