aboutsummaryrefslogtreecommitdiffstats
path: root/src/time/benchmark.c
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2019-10-24 14:20:49 +0300
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2019-10-24 14:20:49 +0300
commit69933c5b521eacd968c4d78ad769ea7a3d6b872f (patch)
tree851b8e5c618f1f1b9666395942ec77e386a274a6 /src/time/benchmark.c
parentab8851b48622dba2d2954306cd48c5c14c91db72 (diff)
downloadlibrin-69933c5b521eacd968c4d78ad769ea7a3d6b872f.tar.gz
librin-69933c5b521eacd968c4d78ad769ea7a3d6b872f.tar.bz2
librin-69933c5b521eacd968c4d78ad769ea7a3d6b872f.zip
diagnostic: print time since program start instead.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/time/benchmark.c')
-rw-r--r--src/time/benchmark.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/time/benchmark.c b/src/time/benchmark.c
index 543275a..4738676 100644
--- a/src/time/benchmark.c
+++ b/src/time/benchmark.c
@@ -22,14 +22,9 @@
#include <errno.h>
#include <sys/resource.h>
#include "rin/time.h"
+#include "rin/definitions.h"
#include "time_private.h"
-#if defined CLOCK_MONOTONIC
-# define RIN_CLOCK_WALL_COUNTER CLOCK_MONOTONIC
-#else
-# define RIN_CLOCK_WALL_COUNTER CLOCK_REALTIME
-#endif /* defined CLOCK_MONOTONIC */
-
static struct bench {
int status;
struct rusage runtime;