-
Notifications
You must be signed in to change notification settings - Fork 388
Implement mach_timebase_info
for macOS
#1331
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
Conversation
Since we return nanoseceonds instead of ticks from `mach_absolute_time`, we don't need to scale the absolute time
@RalfJung Please let me know if you think the approach of always returning returning |
That is exactly the right way, yes. Indeed that's why I picked nanoseconds, I just was too lazy to also implement |
This looks great overall, I just have a few nits. :) |
Also fix typo and remove newline
And add comment documenting successful return value from `mach_timebase_info`.
Co-Authored-By: Ralf Jung <[email protected]>
Awesome, thanks a lot. :D |
📌 Commit fff45b7 has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
Since we return nanoseceonds instead of ticks from
mach_absolute_time
, we don't need to scale the absolute timeFixes #1288