9 Mar 2012 07:45
Re: Recommendation for maintaining accurate local times on nodes?
Henning Rogge <hrogge <at> googlemail.com>
2012-03-09 06:45:10 GMT
2012-03-09 06:45:10 GMT
Your babel code was one of the examples I looked at before I wrote the new code. I added support for CLOCK_MONOTONIC_RAW if its available, because it seems even CLOCK_MONOTONIC can be slowed down and accelerated by NTP influence. (the new code use a 64 bit timestamp internally) Clock management is a pain to do in a reasonable way! Henning On Thu, Mar 8, 2012 at 22:21, Juliusz Chroboczek <jch <at> pps.jussieu.fr> wrote: >> the next version of OLSRd I am working on will use the monotonic clock >> if available. > > You're welcome to grab the code from Babel -- it's portable to all three > useful cases (no support for monotonic clocks, support in both libc and > the kernel, support in libc but not the kernel). > > https://github.com/jech/babeld/blob/master/kernel.c#L35 > > -- Juliusz > > > -- -- Steven Hawkings about cosmic inflation: "An increase of billions of billions of percent in a tiny fraction of a second. Of course, that was before the present government."(Continue reading)
RSS Feed