Change preferred default clocksource to gettimeofday()
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 18:43:31 +0000 (19:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 18:43:31 +0000 (19:43 +0100)
It's faster than clock_gettime()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/os.h

diff --git a/os/os.h b/os/os.h
index 2e4764e18f4ab6c021c3171827bd7323b52ef8bf..1d3a750ac526f7b016e1a166e6c6d13b4681266c 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -135,7 +135,7 @@ typedef unsigned long os_cpu_mask_t;
 #endif
 
 #ifndef FIO_PREFERRED_CLOCK_SOURCE
-#define FIO_PREFERRED_CLOCK_SOURCE     CS_CGETTIME
+#define FIO_PREFERRED_CLOCK_SOURCE     CS_GTOD
 #endif
 
 #ifndef FIO_MAX_JOBS