-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch to
clock_gettime(3)
for macOS/iOS for monotonic clock (#97
) This fixes an issue where on M1 (and presumably M2/M3) hardware, the usage of mach_absolute_time() resulted in undermeasuring the passage of time when compared to std::time::Instant. Now we read from the monotonic clock (using clock_gettime, but conceptually the same as calling mach_continuous_time()) which properly tracks the passage of time regardless of device sleep, frequency, etc.
- Loading branch information
Showing
5 changed files
with
10 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters