mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Use clock_realtime_fast where available
This commit is contained in:
parent
1ca1dda266
commit
f01d739968
@ -36,8 +36,10 @@
|
|||||||
#define NS_PER_MS 1000000 /*%< Nanoseconds per millisecond. */
|
#define NS_PER_MS 1000000 /*%< Nanoseconds per millisecond. */
|
||||||
#define US_PER_S 1000000 /*%< Microseconds per second. */
|
#define US_PER_S 1000000 /*%< Microseconds per second. */
|
||||||
|
|
||||||
#ifdef CLOCK_REALTIME_COARSE
|
#if defined(CLOCK_REALTIME_COARSE)
|
||||||
#define CLOCKSOURCE CLOCK_REALTIME_COARSE
|
#define CLOCKSOURCE CLOCK_REALTIME_COARSE
|
||||||
|
#elif defined(CLOCK_REALTIME_FAST)
|
||||||
|
#define CLOCKSOURCE CLOCK_REALTIME_FAST
|
||||||
#else
|
#else
|
||||||
#define CLOCKSOURCE CLOCK_REALTIME
|
#define CLOCKSOURCE CLOCK_REALTIME
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user