Archived

This topic is now archived and is closed to further replies.

Best way to make a high performance timer?

This topic is 5827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What''s the best way (using Win32 or directx) to make a high performace timer? Right now it''s working fiarly well when I''m using QueryPerformanceTimer(), but the docs say that this will always return 0 if the hardware doesn''t support a high-performance timer. Is this a major concern or do almost all modern (windows) comps support the high performace timer?

Share this post


Link to post
Share on other sites
Any computer beyond a pentium1 (running win9x or higher) will be pretty much guaranteed to have a high performance counter built in.

If you *really* want to make your programs work for 486''s running windows 3.1, then you can built some secondary backup code--if QueryPerformanceCounter fails, then use timeGetTime().

Share this post


Link to post
Share on other sites