bind9/lib/isc/unix
Patrick McLean ebced74b19 Add isc_time_now_hires function to get current time with high resolution
The current isc_time_now uses CLOCK_REALTIME_COARSE which only updates
on a timer tick. This clock is generally fine for millisecond accuracy,
but on servers with 100hz clocks, this clock is nowhere near accurate
enough for microsecond accuracy.

This commit adds a new isc_time_now_hires function that uses
CLOCK_REALTIME, which gives the current time, though it is somewhat
expensive to call. When microsecond accuracy is required, it may be
required to use extra resources for higher accuracy.
2021-03-20 11:25:55 -07:00
..
include Add isc_time_now_hires function to get current time with high resolution 2021-03-20 11:25:55 -07:00
dir.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
errno.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
errno2result.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
errno2result.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
file.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
fsaccess.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
interfaceiter.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
meminfo.c Handle the errors from sysconf() call in isc_meminfo_totalphys() 2020-09-21 10:55:00 +02:00
net.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
os.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
pk11_api.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
resource.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
socket.c Reformat sources using clang-format-11 2020-12-08 18:36:23 +01:00
socket_p.h update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
stdio.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
stdtime.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
syslog.c update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
time.c Add isc_time_now_hires function to get current time with high resolution 2021-03-20 11:25:55 -07:00