New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: use clock_gettime instead of gettimeofday on Darwin #25633

Open
randall77 opened this Issue May 29, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@randall77
Contributor

randall77 commented May 29, 2018

clock_gettime has higher resolution, we should use it if available.
It is not guaranteed to be available until Darwin 10.12. This issue is on hold until that is our minimum Darwin version.

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.

@randall77 randall77 added this to the Go1.12 milestone May 29, 2018

@randall77 randall77 self-assigned this May 29, 2018

@randall77 randall77 modified the milestones: Go1.12, Unplanned Sep 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment