What is the best way to time a code section with high resolution and portability?
/* Time from here */
ProcessIntenseFunction();
/* to here. */
printf("Time taken %d seconds %d milliseconds", sec, msec);
Is there a standard library that would have a cross-platform solution?
See Question&Answers more detail:os