Skip to main content
GameDev.net gamedev.net
🔒 Locked

Timers

Started by BSXrider Jan 19, 2002 at 5:18 AM 2 replies 200+ views
Original Post
BSXrider
BSXrider
assuming all are available: timeGetTime QueryPerformanceCounter SDL timer something else Which is the one to use? - seb
Kylotan
Kylotan
What do you need? If you need the highest accuracy/resolution, then the performance counter is best. If you need something that will compile on more than one platform, then SDL''s timer should suffice.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]
BSXrider
BSXrider
I don''t "need" anything at the moment, just trying to absorb all this information by osmosis :D

- seb
Null and Void
Null and Void
SDL''s time functions use the highest resolution options available, inclusing the performance timer (in Windows) if the system it is running on supports it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.