hmm, you can always use GetTickCount() (This function retrieves the number of milliseconds the system has been running, excluding any time that the system was suspended.) ('windows.h'/'winbase.h').. If your on win32 of c.
Simple example (not tested):
Code:
unsigned int before, after;
before = GetTickCount();
foo();
after = GetTickCount();
printf("Your function used %ld ms or %ld sec to succesfully complete.\n", before-after, (before-after)/60);
// sPiKie
I am new btw, nice to see you guys I have moved from VB to C\C++ last months on school