> In glibc (not musl so far as I know) the clock_getttime lookup is
> incredibly fast because it just maps in the relevant kernel page and
> does the work without a syscall,

In musl too:

  https://git.musl-libc.org/cgit/musl/tree/src/time/clock_gettime.c

Also, babeld doesn't make that many calls to clock_gettime -- the current
time is cached in the global variable "now", which is only updated once
per call to select.

-- Juliusz

_______________________________________________
Babel-users mailing list
Babel-users@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/babel-users

Reply via email to