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

The effort to convert TSC ticks into the nanoseconds #85

Open
ujos opened this issue Jan 1, 2025 · 0 comments
Open

The effort to convert TSC ticks into the nanoseconds #85

ujos opened this issue Jan 1, 2025 · 0 comments

Comments

@ujos
Copy link

ujos commented Jan 1, 2025

In the book on the page 33 you mention TSC as a tool to measure the time. The problem is, there is no easy way to convert TSC ticks into the nanoseconds. I haven't found one function that works on the user level (without elevated privileges). The only way is to call QueryPerformanceCounter, then sleep, then call QueryPerformanceCounter again and measure the delta. The result is not precise.

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

No branches or pull requests

1 participant