Skip to content

Commit

Permalink
is timespec broken
Browse files Browse the repository at this point in the history
  • Loading branch information
swenson committed Feb 13, 2024
1 parent cc64bff commit 7b9b209
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ static __inline long lrand48(void) {
}

static __inline double utime(void) {
struct timespec ts;
timespec_get(&ts, TIME_UTC);
return 1000000.0 * ts.tv_sec + ts.tv_nsec / 1000.0;
//struct timespec ts;
//timespec_get(&ts, TIME_UTC);
//return 1000000.0 * ts.tv_sec + ts.tv_nsec / 1000.0;
return lrand48();
}
#else

Expand Down

0 comments on commit 7b9b209

Please sign in to comment.