Skip to content

Commit

Permalink
Merge pull request #2 from stardog-union/use_std_cpp_timing_on_mac
Browse files Browse the repository at this point in the history
Use the C++ steady_clock on Mac OSX, rather than using the Mach kernel clock service
  • Loading branch information
james-pack authored Aug 2, 2018
2 parents e9a76ba + eb458e8 commit e622630
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 e622630

Please sign in to comment.