Jump to content
  • Advertisement

Archived

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

Brobanx

Best way to make a high performance timer?

This topic is 6041 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!