Do they all give millisecond resolution?
views:
476answers:
1
+2
A:
clock
A C++ function. It returns the number of CPU ticks since the application is started. To convert this into seconds divide it by CLOCKS_PER_SEC
.
GetTickCount
A Win32 API function. Returns the number of milliseconds since the system was started.
QueryPerformanceCounter
A Win32 API function. The performance counter is a high-resolution counter which increases over time. To convert this into seconds divide it by QueryPerformanceFrequency
.
DR
2009-10-13 12:58:22