How do I time an interval between two lines of code with millisecond
accuracy? In the docs I have found:
start_time = time(NULL);
processing();
finish_time = time(NULL);
printf(“Processing took %f seconds\n”, difftime(finish_time, start_time));
but this rounds to the nearest second. Is there a similar method to display
the difference in milliseconds between the start and finish times?
–
Paul.