fix(lib): use clock_gettime on macOS again

(cherry picked from commit 69d977d736)
This commit is contained in:
Amaan Qureshi 2024-12-03 16:25:56 -05:00
parent e3c8263338
commit 5e645f11b2

View file

@ -49,9 +49,9 @@ static inline bool clock_is_gt(TSClock self, TSClock other) {
return self > other;
}
#elif defined(CLOCK_MONOTONIC) && !defined(__APPLE__)
#elif defined(CLOCK_MONOTONIC)
// POSIX with monotonic clock support (Linux)
// POSIX with monotonic clock support (Linux, macOS)
// * Represent a time as a monotonic (seconds, nanoseconds) pair.
// * Represent a duration as a number of microseconds.
//
@ -102,7 +102,7 @@ static inline bool clock_is_gt(TSClock self, TSClock other) {
#else
// macOS or POSIX without monotonic clock support
// POSIX without monotonic clock support
// * Represent a time as a process clock value.
// * Represent a duration as a number of process clock ticks.
//