I'm looking for a way to measure microsecs in C++/Windows.
I read about the "clock" function, but it returns only milliseconds... Is there a way to do it?
Use QueryPerformanceCounter and QueryPerformanceFrequency for finest grain timing on Windows.
MSDN article on code timing with these APIs here (sample code is in VB - sorry).
2.1m questions
2.1m answers
60 comments
57.0k users