From b5896fff67d150e6ba96cea7d3679f9958b787ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Sep 2014 07:36:26 +0000 Subject: Add ZixBTree. git-svn-id: http://svn.drobilla.net/zix/trunk@84 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- test/bench.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/bench.h') diff --git a/test/bench.h b/test/bench.h index 4227e2d..93d4002 100644 --- a/test/bench.h +++ b/test/bench.h @@ -27,10 +27,10 @@ elapsed_s(const struct timespec* start, const struct timespec* end) } static inline struct timespec -bench_start() +bench_start(void) { struct timespec start_t; - clock_gettime(CLOCK_REALTIME, &start_t); + clock_gettime(CLOCK_MONOTONIC, &start_t); return start_t; } @@ -38,7 +38,7 @@ static inline double bench_end(const struct timespec* start_t) { struct timespec end_t; - clock_gettime(CLOCK_REALTIME, &end_t); + clock_gettime(CLOCK_MONOTONIC, &end_t); return elapsed_s(start_t, &end_t); } -- cgit v1.2.1