High Resolution Timers
Hi Everyone.
I have been fooling around with some graphics programming and I am at the point now where I need to start thinking about timing. Can anyone give me a suggestion for a high resolution timer in linux? I have been fooling around with "gettimeofday" and that seems to work. I just want to make sure that there isn't a better, more well known way.
Also what happens when gettimeofday overflows? (I think it occurs about ever 49 days) But timing could get seriously screwed up unless there is a way to trap for that.
Thanks,
Sam
|