SyntaxFix
Write A Post
Hire A Developer
Questions
I think this should work:
#include <time.h> clock_t start = clock(), diff; ProcessIntenseFunction(); diff = clock() - start; int msec = diff * 1000 / CLOCKS_PER_SEC; printf("Time taken %d seconds %d milliseconds", msec/1000, msec%1000);