   What timer functions are there in c++?
  Hi, I''m wondering if anyone knows of any timer functions in c++ that i can use for my game 
  Standard C++ does not have any timer functions. You need to specify which platform you are working on. ;quote:Original post by Arild Fines  Standard C++ does not have any timer functions. You need to specify which platform you are working on.   Well, it does have clock() and time().   “Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”    — Brian W. Kernighan (C programming language co-inventor);  windows98 and up ;  timeGetTime()GetTickCount()QueryPerformanceCounter()GetSystemTimeAsFileTime()   (ms-help://MS.MSDNQTR.2003FEB.1033/sysinfo/base/time_functions.htm)“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”    — Brian W. Kernighan (C programming language co-inventor) [edited by - Fruny on February 14, 2004 10:33:56 PM];  clock() in time.h gives the time in milliseconds. Is it any better or worse than the windows.h GetTickCount()?   [edited by - robinei on February 15, 2004 7:35:21 PM];  clock() is probably just a wrapper for GetTickCount(). ;  use either timeGetTime() or QueryPerformanceCounter() for high-quality timer. ;  I use clock() or SDL_GetTicks() for timing (cross platform!)Issues:1)  Win9x - resolution = 18ms2)  Win2k - resolution = 1msso I have to do a running average of multiple frames to get to a useful resolution.   lonesockPiranha are people too. 