Archived

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

Brobanx

Best way to make a high performance timer?

Recommended Posts

Brobanx    136
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
Dragn    122
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