I have an MS Visual Studio 2005 application . All code is in the C . I want to measure the number of loops executed to perform certain functions. Is there a Win32 API that I can use to calculate the number of cycles?
I used gettimeofday()to get the time in microseconds, but I want to know how many cycles are consumed.
source
share