[Olsr-users] Recommendation for maintaining accurate local times on nodes?

Henning Rogge (spam-protected)
Fri Mar 9 07:45:10 CET 2012


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 <(spam-protected)> 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."




More information about the Olsr-users mailing list