Add support for clock_gettime_nsec_np()

Prefer clock_gettime_nsec_np(CLOCK_UPTIME_RAW) to mach_absolute_time().
This commit is contained in:
Qi Wang 2024-10-04 15:25:54 -07:00 committed by Qi Wang
parent 397827a27d
commit 6d625d5e5e
3 changed files with 27 additions and 1 deletions

View file

@ -117,6 +117,11 @@
*/
#undef JEMALLOC_HAVE_CLOCK_REALTIME
/*
* Defined if clock_gettime_nsec_np(CLOCK_UPTIME_RAW) is available.
*/
#undef JEMALLOC_HAVE_CLOCK_GETTIME_NSEC_NP
/*
* Defined if _malloc_thread_cleanup() exists. At least in the case of
* FreeBSD, pthread_key_create() allocates, which if used during malloc