Skip to content

macos: convert CPU times to Duration properly #25

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

Merged
merged 3 commits into from
Jan 12, 2023

Conversation

kathoum
Copy link
Contributor

@kathoum kathoum commented Jan 12, 2023

Scale CPU time values according to mach_timebase_info (#21).

Caching the result of the extern call should not be necessary, it is already cached in userspace (source: https://github.com/apple/darwin-xnu/blob/main/libsyscall/wrappers/mach_timebase_info.c).

Pull request checklist:

  • CHANGELOG.md was updated

@RAnders00
Copy link
Contributor

Thank you very much!

@RAnders00 RAnders00 merged commit 7dfa6c0 into robotty:master Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants