From 3bb83e5595892f7feb23248b88285f9ef9ad4786 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 19 Mar 2013 23:08:39 +0100 Subject: Changed Linux time function With CLOCK_MONOTONIC_RAW, the timer should never go back in time. --- src/app/system_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/system_linux.cpp b/src/app/system_linux.cpp index c6b6a6e..cd785f8 100644 --- a/src/app/system_linux.cpp +++ b/src/app/system_linux.cpp @@ -64,7 +64,7 @@ SystemDialogResult SystemDialog_Linux(SystemDialogType type, const std::string& void GetCurrentTimeStamp_Linux(SystemTimeStamp *stamp) { - clock_gettime(CLOCK_MONOTONIC, &stamp->clockTime); + clock_gettime(CLOCK_MONOTONIC_RAW, &stamp->clockTime); } long long GetTimeStampExactResolution_Linux() -- cgit v1.2.3-1-g7c22