fix(lib): use clock_gettime on macOS again
(cherry picked from commit 69d977d736)
This commit is contained in:
parent
e3c8263338
commit
5e645f11b2
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue