Closed gpaulissen closed 1 year ago
Depending on the environment either clock(), ftime() or getrusage() were used for calculating a double time (in seconds and after the digit the fractional seconds). The clock() function does its job on Windows however not on Unix.
See also 8 Ways to Measure Execution Time in C/C++.
Now first clock_gettime() and gettimeofday() are used before the others.
Depending on the environment either clock(), ftime() or getrusage() were used for calculating a double time (in seconds and after the digit the fractional seconds). The clock() function does its job on Windows however not on Unix.
See also 8 Ways to Measure Execution Time in C/C++.