bind9/bin/dig
Patrick McLean 56cef1495f dig: Use high resolution clocks when microsecond accuracy is requested
The TIME_NOW macro calls isc_time_now which uses CLOCK_REALTIME_COARSE
for getting the current time. This is perfectly fine for millisecond,
however when the user request microsecond resolutiuon, they are going
to get very inaccurate results. This is especially true on a server
class machine where the clock ticks may be set to 100HZ.

This changes dig to use the new TIME_NOW_HIRES macro that uses the
CLOCK_MONOTONIC_RAW that is more expensive, but gets the *actual*
current time rather than the at the last kernel time tick.
2021-03-20 11:25:55 -07:00
..
win32 Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.c add preliminary DoH client support to dig 2021-03-05 13:28:17 +02:00
dig.rst add preliminary DoH client support to dig 2021-03-05 13:28:17 +02:00
dighost.c dig: Use high resolution clocks when microsecond accuracy is requested 2021-03-20 11:25:55 -07:00
dighost.h add preliminary DoH client support to dig 2021-03-05 13:28:17 +02:00
host.c dig: Use high resolution clocks when microsecond accuracy is requested 2021-03-20 11:25:55 -07:00
host.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
Makefile.am Move the <isc/readline.h> header to bin/dig/readline.h 2021-02-16 01:04:46 +00:00
nslookup.c Move the <isc/readline.h> header to bin/dig/readline.h 2021-02-16 01:04:46 +00:00
nslookup.rst update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
readline.h Move the <isc/readline.h> header to bin/dig/readline.h 2021-02-16 01:04:46 +00:00