Skip to content

Conversation

@zihadmahiuddin
Copy link
Contributor

As mentioned in #26014, QueryPerformanceCounter does not return nanoseconds.
This PR fixes its usage by following the existing implementation in std.time.Instant.since.
I'm not 100% about the intermediate integer types (at least it seems to work), so let me know if they should be changed.

Closes #26014

Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Please avoid unnecessary use of var.

Co-authored-by: Andrew Kelley <andrew@ziglang.org>
@andrewrk andrewrk force-pushed the fix/win-io-threaded-now branch from 41511b5 to e8c2efb Compare November 25, 2025 11:46
@andrewrk andrewrk merged commit e4be00f into ziglang:master Nov 25, 2025
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.

std.Io.Clock.now does not return nanoseconds on Windows when using the awake or boot clocks

2 participants