summaryrefslogtreecommitdiffstats
path: root/test/bench.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-09-22 07:36:26 +0000
committerDavid Robillard <d@drobilla.net>2014-09-22 07:36:26 +0000
commitb5896fff67d150e6ba96cea7d3679f9958b787ea (patch)
tree69b1e9f00b2d4dacedbfe2037ecaaeda63774ecf /test/bench.h
parente0478e0044975678fce9093d01264a20bc2e1ae2 (diff)
downloadzix-b5896fff67d150e6ba96cea7d3679f9958b787ea.tar.gz
zix-b5896fff67d150e6ba96cea7d3679f9958b787ea.tar.bz2
zix-b5896fff67d150e6ba96cea7d3679f9958b787ea.zip
Add ZixBTree.
git-svn-id: http://svn.drobilla.net/zix/trunk@84 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'test/bench.h')
-rw-r--r--test/bench.h6
1 files changed, 3 insertions, 3 deletions
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);
}