I'm programming a game, and I need a time source to measure the time needed for one frame (in order to calculate the frames per second, and the movement of the little cars
).
SDL provides SDL_GetTicks(), but its resolution is 1 millisecond, which is to imprecise. Is there a better time source available on Linux (which is, if possible, also available on other POSIX-OS), something like GetPerformanceCounter() on Windows?
You might also want to have a look at this thread:
http://www.linuxquestions.org/questi...hreadid=359828
Adrian