Jump to content
  • Advertisement
Sign in to follow this  
BBB

QueryPerformanceCounter and GetThreadTime?

This topic is 4697 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

Some time ago I read this. For serious performance benchmarks you should use a profiler but sometimes I just want to know how fast a certain routine is. So my question is: is there something similar to Win32's QueryPerformanceCounter() and GetThreadTimes() in some Unix-API? I'm coding in Linux but ofcourse there is no harm in usings something that works on all *nix systems, like POSIX. And are there any better ways to do what I'm trying to do? MSDN QueryPerformanceCounter() MSDN GetThreadTimes()

Share this post


Link to post
Share on other sites
Advertisement
There's an older thread with some functions that can work. I use gettimeofday, but I'm not sure if it's accurate enough on all systems (works on linux well enough for me at least).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!