QueryPerformanceFrequency - Negative value

misterowakka's Avatar, Join Date: Dec 2007
Newbie Member
For some reason I get a negative value from this function on some computers.
I really can not switch to another function such as GetTickCount because I have a big application which uses QueryPerformanceFrequency all over.

I already tried to do
QueryPerformanceFrequency(&ticksPerSecond); //freq in [counts per second]
unsigned __int64 Ufreq = ticksPerSecond.QuadPart;

It doesn't help...

Any suggestions?

I can't seem to find a solution on the web even though this problem occurs on more than one computer...And this function is quite an important one I assume...

Thank you
0
anandv's Avatar
Newbie Member
U can try considering the value returned as hex value and proceed with normal calculations after that.