Advertisement

QueryPerformanceCounter()

Started by June 13, 2001 08:06 PM
0 comments, last by zedd 23 years, 8 months ago
I''m trying to check QueryPerformanceCounter() (and Frequency) for errors, so i can use timeGetTime() if it fails. MSDN says: If the installed hardware does not support a high-resolution performance counter, the return value is zero. The function always returns 0 here, when it''s really not failing. the LARGE_INTEGER is ok and GetLastError() doesn''t report any error. Anyone ever had this problem? Thanks zedd
0 means success, it''ll evaluate to true when it fails

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement