-
Couldn't load subscription status.
- Fork 478
[Windows] Improve timer accuracy. #843
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
base: main
Are you sure you want to change the base?
Conversation
This changes the way timers are implemented so that they will be a lot more accurate on Windows than they were previously. rdar://135413990
This means we no longer need to use `GetProcAddress()` to find the `Query[Unbiased]InterruptTimePrecise()` APIs. rdar://135413990
|
@swift-ci Please test Linux platform |
|
@swift-ci Please test Windows platform |
Tweak the algorithm to avoid spinning in more cases. rdar://135413990
Now that we're directly linking the `Query[Unbiased]InterruptTimePrecise()` function, we don't need this variable or the type declaration next to it. rdar://PR-135413990
|
@swift-ci Please test Linux platform |
|
@swift-ci Please test Windows platform |
|
@swift-ci Please test Linux platform |
|
@swift-ci Please test Windows platform |
|
Windows failure looks like CI has gone wrong trying to check out Swift itself. Will have to get someone to look at that on Monday. |
|
@swift-ci Please test Windows platform |
This changes the way timers are implemented so that they will be a lot more accurate on Windows than they were previously.
(See also swiftlang/swift#72095)
rdar://135413990