so in order to find the frequency of the processor, should i call gettimeofday(), then call rdtsc(), then gettimeofday() again, subtract the latter from the first, then divide 1 by that number?
okay, working on porting some code from windows to linux and i've gotten stuck. It's a game server and we have a timer class, which needs to be a high resolution timer (hence why i can't just use time.h)
currently, here's how the game creator descibes the Timer class:
and here's how the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.