diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-19 23:08:39 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-19 23:08:39 +0100 |
commit | 3bb83e5595892f7feb23248b88285f9ef9ad4786 (patch) | |
tree | ae5db6f69f079460763e9f45b0d6024e5c2a4309 /src/app | |
parent | 025bedecfb2c264b1f3d6a04de72160001173cc1 (diff) | |
download | colobot-3bb83e5595892f7feb23248b88285f9ef9ad4786.tar.gz colobot-3bb83e5595892f7feb23248b88285f9ef9ad4786.tar.bz2 colobot-3bb83e5595892f7feb23248b88285f9ef9ad4786.zip |
Changed Linux time function
With CLOCK_MONOTONIC_RAW, the timer should never go back in time.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/system_linux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() |