Skip to content
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

Cache QueryPerformanceFrequency() result #12056

Conversation

mitaclaw
Copy link
Contributor

https://learn.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency
The result of QueryPerformanceFrequency will never change, according to this Win32 API documentation. The non-windows result of QueryPerformanceFrequency is known at compile time. I think it can be left out of the ProfileStats struct and cached elsewhere.

@mitaclaw mitaclaw marked this pull request as draft July 20, 2023 07:32
@mitaclaw
Copy link
Contributor Author

Finally obsoleted by #12691.

@mitaclaw mitaclaw closed this Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant