bind9/lib/isc/tests
Patrick McLean c5c9c9b83f 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.

(cherry picked from commit ebced74b19)
2021-03-20 11:59:21 -07:00
..
testdata/file [master] new mkeys and nzf naming format 2014-11-04 19:43:27 -08:00
aes_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
buffer_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
counter_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
crc64_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
errno_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
file_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
hash_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
heap_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
hmac_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
ht_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
isctest.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
isctest.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Kyuafile Temporarily disable tlsdns_test until it gets refactored 2021-03-18 15:42:03 +01:00
lex_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
Makefile.in Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
md_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
mem_test.c Add mempool get/put tracking with AddressSanitizer 2021-02-26 10:13:17 -08:00
netaddr_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
parse_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
pool_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
quota_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
radix_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
random_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
regex_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
result_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
safe_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
siphash_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
sockaddr_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
socket_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
symtab_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
task_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
taskpool_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
tcp_quota_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:29:44 +01:00
tcp_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:29:44 +01:00
tcpdns_test.c Change the isc_nm_(get|set)timeouts() to work with milliseconds 2021-03-18 15:16:13 +01:00
time_test.c Add isc_time_now_hires function to get current time with high resolution 2021-03-20 11:59:21 -07:00
timer_test.c Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
tlsdns_test.c Change the isc_nm_(get|set)timeouts() to work with milliseconds 2021-03-18 15:16:13 +01:00
udp_test.c Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:29:44 +01:00
uv_wrap.h Refactor netmgr and add more unit tests 2020-12-09 10:46:16 +01:00