Use CLOCK_MONOTONIC_COARSE rather than COARSE_MONOTONIC_RAW.

The raw clock variant is slow (even relative to plain CLOCK_MONOTONIC),
whereas the coarse clock variant is faster than CLOCK_MONOTONIC, but
still has resolution (~1ms) that is adequate for our purposes.

This resolves #479.
This commit is contained in:
Jason Evans
2016-10-29 22:55:08 -07:00
parent c443b67561
commit 1d57c03e33
3 changed files with 10 additions and 10 deletions

View File

@@ -77,9 +77,9 @@
#undef JEMALLOC_HAVE_ISSETUGID
/*
* Defined if clock_gettime(CLOCK_MONOTONIC_RAW, ...) is available.
* Defined if clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is available.
*/
#undef JEMALLOC_HAVE_CLOCK_MONOTONIC_RAW
#undef JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE
/*
* Defined if clock_gettime(CLOCK_MONOTONIC, ...) is available.