Archived

This topic is now archived and is closed to further replies.

quant

Timing in games

Recommended Posts

Jason2Jason    166
AS far as i know that is one of the more accurate timer functions. If you want less accurate as well, there is GetTickCount() which only returns the time of up to one millisecond of resolution.

I am not sure of the accuracy of QueryPerformanceCounter, but you can be sure to find the answer at MSDN You can find many answers here before posting, and its quite easy with the simple questions like this.

Hope that helped in some way.

-J

Share this post


Link to post
Share on other sites
Holy Fuzz    213
Note that there is a distinct difference between "accuracy" and "resolution". While the resolution of GetTickCount may be 1 ms, it''s accuracy will vary depending on the system. For example, on my system its accuracy is 10 ms.

QueryPerformanceCounter, on the other hand, is very accurate in addition to having a low resolution.

Share this post


Link to post
Share on other sites