Use C's version of the Time() function before and after the function call, then have C print out the two times, or calculate the difference between the two times and print that one out.
anonymous
2011-03-11 13:46:37 UTC
Yes
DWORD dwBefore = timeGetTime();
Code here
DWORD dwAfter = timeGetTime();
DWORD dwTotalTime = dwAfter - dwBefore;
ScottD_Arch
2011-03-12 10:34:08 UTC
In linux you want to use clock_gettime(CLOCK_MONOTONIC
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.