[zeromq-dev] Absolute vs relative recurring timers in zloop

Roger sponsoredlinks at hotmail.com
Tue Oct 23 23:35:44 CEST 2012


Hi, apologies if this has been covered already - I did a quick search but
couldn't see it specifically mentioned. 

While running a recurring timer within zloop I noticed that it drifts over
time, as it sets a time relative to when the execution loop is triggered, 
rather than an absolute time based on when it was expected to last fire.

I couldn't see this mentioned as expected behaviour, and it causes
significant drift over time (on windows at least - linux is less severe :) 

I've uploaded some thoughts in a patch (below) if someone more
experienced than me is interested in having a think about whether
this might be worth adding/updating

thanks

Roger

https://gist.github.com/3941724




More information about the zeromq-dev mailing list