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

Hal_getMonotonicTimeInMs() returns a constant value on win32 #163

Open
psychon opened this issue Jan 6, 2025 · 1 comment
Open

Hal_getMonotonicTimeInMs() returns a constant value on win32 #163

psychon opened this issue Jan 6, 2025 · 1 comment

Comments

@psychon
Copy link

psychon commented Jan 6, 2025

While looking through commits since the last release, I noticed this pointer-to-value cast. I think you wanted to call the function instead (missing ()):

msSinceEpoch
Hal_getMonotonicTimeInMs()
{
return (msSinceEpoch)GetTickCount64;
}

I do not know win32, but the code below clearly shows that this is a function and not a global variable:

return (nsSinceEpoch)(GetTickCount64() * 1000000ULL);

@mzillgith
Copy link
Contributor

Thanks. I updated the code.

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

2 participants