Jump to content
  • Advertisement
Sign in to follow this  
Zabbas

Timer

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

Hello, I just started to do some more advanced stuff under Linux, and maybe someone could point me in right direction. What I want is to have a high resolution timer. Right now I'm using "ftime" calls to calculate time, but it gives me resolution to 1/1000 sec. Does someone know a way to have higher resolution timer under Linux? Regards...

Share this post


Link to post
Share on other sites
Advertisement
I know the gstreamer library internally works on nanoseconds, so at least it's possible. I don't know of any standard library that supplies these high resolution timers though.

Share this post


Link to post
Share on other sites
The gettimeofday function will give you a timeval structure. That structure can be accurate down to microseconds, but i am not sure if gettimeofday is that accurate.

Share this post


Link to post
Share on other sites
Thanks for all responses, I will try them in the evening.
Quote:
Original post by Null and Void
This question is in the FAQ.

Sorry for that, I missed that one :(

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!