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

原文地址:https://www.cnblogs.com/faeriesoft/p/4187562.html