Join GitHub today
runtime: use clock_gettime instead of gettimeofday on Darwin #25633
clock_gettime has higher resolution, we should use it if available.
We could do this now but it would require making the choice at runtime. That seems difficult - we'd need to use the Darwin equivalent of dlopen/dlsym to query the existence of, and call, clock_gettime.