CLOCKS_PER_SEC
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
It's defined in Time.h and it's value is 1000. By the way - using windows timer is sometimes not enough. Although CLOCKS_PER_SEC is 1000, the timer is updated approximately every 55ms, that is less than 20 times per second. As for me i prefer to use QueryPerformanceCounter and QueryPerformanceFrequency functions - these use a timer that is updated very often (depends on hardware). I should be "smoother" than 1us (over 1MHz frequency). Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.