Timer
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...
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.
<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>
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.
Thanks for all responses, I will try them in the evening.
Sorry for that, I missed that one :(
Quote: Original post by Null and Void
This question is in the FAQ.
Sorry for that, I missed that one :(
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement