Advertisement

Precision timing

Started by September 25, 2005 09:51 AM
2 comments, last by acid2 18 years, 11 months ago
Hi, I want to get delta timing into my game, and in windows thats just a simple QueryPerformenceCoutner kind of thing - how is this achieved in Linux? What API calls are needed?
Ollie "It is better to ask some of the questions than to know all the answers." ~ James Thurber[ mdxinfo | An iridescent tentacle | Game design patterns ]
Use gettimeofday(2)
Free Mac Mini (I know, I'm a tool)
Advertisement
You can always use rdtsc (QueryPerformanceCounter is sometimes implemented with rdtsc):

http://www.linux.it/~rubini/docs/ksys/ksys.html

Thanks for the replies :)
Ollie "It is better to ask some of the questions than to know all the answers." ~ James Thurber[ mdxinfo | An iridescent tentacle | Game design patterns ]

This topic is closed to new replies.

Advertisement