About Timer of Game Engine

FPS 60 time interval:0.01666666666666666666666666666667s

FPS 59 time interval:0.01694915254237288135593220338983s

difference value:0.00028248587570621468926553672316s

so 0.001s clock can't distinguish the difference between FPS 60 and FPS 59

clock() from C standard library and GetTickCount() of Win32 API  both become useless...

 

for further study。。。

1

Win32

QueryPerformanceFrequency()

Linux

gettimeofday()

2

cycle count

posted @ 2014-12-26 21:17  StuJnX6ry  阅读(127)  评论(0编辑  收藏  举报