diff options
author | 2019-10-24 14:20:49 +0300 | |
---|---|---|
committer | 2019-10-24 14:20:49 +0300 | |
commit | 69933c5b521eacd968c4d78ad769ea7a3d6b872f (patch) | |
tree | 851b8e5c618f1f1b9666395942ec77e386a274a6 /src/time | |
parent | ab8851b48622dba2d2954306cd48c5c14c91db72 (diff) | |
download | librin-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')
-rw-r--r-- | src/time/benchmark.c | 7 |
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; |