From 7b9b209eb322317da58d7675f909e10256d28867 Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Mon, 12 Feb 2024 17:10:31 -0800 Subject: [PATCH] is timespec broken --- stresstest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stresstest.c b/stresstest.c index 88e127f..8581b87 100644 --- a/stresstest.c +++ b/stresstest.c @@ -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