Wallclock jumps with/in/and libev

Bernd Petrovitsch bernd at tuxoid.at
Thu Dec 19 01:59:23 CET 2019


Hi all!

I have an application which has monotonic and wallclock timers.
The local clock is basically NTP- and/or GPS-synchronized.
Nevertheless for reasons (beyond my power to change and
too strange to describe), the wallclock can jump forward
and/or backward.

Can this be handled with libev (and - if yes - how) somewhat
clean?

I'm aware of timerfd_create(2) and TFD_TIMER_CANCEL_ON_SET on
somewhat recent Linux kernels.

I want to avoid a workarounds like "use a monotonic timer
for the wallclock timeout and check the wallclock afterwards"
to not wait too long if the wallclock jumps back or to check
for wallclock changes in some very short timer.

MfG,
	Bernd
-- 
Bernd Petrovitsch                       Email : bernd at tuxoid.at
                     LUGA : http://www.luga.at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 2514 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20191219/2c1d1b88/attachment.key>


More information about the libev mailing list