From 853032b36509c85207f5b51a981a04862c8a48e0 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 8 Jun 2020 15:46:22 +0200 Subject: [PATCH] Use CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not defined. --- src/timing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/timing.cpp b/src/timing.cpp index 8e6ba4c8a..0da323949 100644 --- a/src/timing.cpp +++ b/src/timing.cpp @@ -18,6 +18,11 @@ namespace helib { #ifdef CLOCK_MONOTONIC + +#ifndef CLOCK_MONOTONIC_RAW +#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC +#endif + unsigned long GetTimerClock() { timespec ts;