Skip to content

Commit

Permalink
Drop CLOCK_MONOTONIC_RAW
Browse files Browse the repository at this point in the history
This is Linux-specific: https://www.man7.org/linux/man-pages/man2/clock_gettime.2.html

It fixes compilation on mingw, see szcompressor#58
  • Loading branch information
xantares authored Sep 1, 2020
1 parent bc9e5da commit 5bf4db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sz/src/sz_omp.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ double sz_wtime(){
return omp_get_wtime();
#else
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
clock_gettime(CLOCK_MONOTONIC, &ts);

return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
#endif
Expand Down

0 comments on commit 5bf4db1

Please sign in to comment.