Skip to content

Commit

Permalink
Use the C++ steady_clock on Mac OSX, rather than using the Mach kerne…
Browse files Browse the repository at this point in the history
…l clock service
  • Loading branch information
James Pack committed Aug 1, 2018
1 parent e9a76ba commit eb458e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env/env_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ class PosixEnv : public Env {
return static_cast<uint64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec;
#elif defined(OS_SOLARIS)
return gethrtime();
#elif defined(__MACH__)
#elif defined(__MACH__) && !defined(__APPLE__)
clock_serv_t cclock;
mach_timespec_t ts;
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
Expand Down

0 comments on commit eb458e8

Please sign in to comment.