Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   QueryPerformanceFrequency - Negative value (http://www.go4expert.com/forums/queryperformancefrequency-negative-value-t8041/)

misterowakka 30Dec2007 22:18

QueryPerformanceFrequency - Negative value
 
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

anandv 4Jan2008 12:05

Re: QueryPerformanceFrequency - Negative value
 
U can try considering the value returned as hex value and proceed with normal calculations after that.


All times are GMT +5.5. The time now is 20:50.