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):
I am new btw, nice to see you guys I have moved from VB to C\C++ last months on school
unsigned int before, after;
before = GetTickCount();
after = GetTickCount();
printf("Your function used %ld ms or %ld sec to succesfully complete.\n", before-after, (before-after)/60);