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

Use GetSystemTimeAsFileTime() instead of GetTickCount() to infer time references #12

Open
avengerx opened this issue Feb 26, 2023 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@avengerx
Copy link
Owner

The GetTickCount() function has the risk of overlapping every 49 days. Alternatively there's GetTickCount64(), yet GetSystemTimeAsFileTime() should be much lighter to the driver, if feasible to replace the current time reference.

It basically is used to determine time differences for the duration of effects run.

@avengerx avengerx added the feature New feature or request label Feb 26, 2023
@avengerx avengerx self-assigned this Feb 26, 2023
@avengerx
Copy link
Owner Author

avengerx commented Mar 1, 2023

It looks like relying on rdtsc() would be even faster.

As it amounts to CPU clock ticks since last reset, it may be difficult to approximate to actual milliseconds or any other wallclock variation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant