Changed Linux time function
With CLOCK_MONOTONIC_RAW, the timer should never go back in time.dev-ui
parent
025bedecfb
commit
3bb83e5595
|
@ -64,7 +64,7 @@ SystemDialogResult SystemDialog_Linux(SystemDialogType type, const std::string&
|
||||||
|
|
||||||
void GetCurrentTimeStamp_Linux(SystemTimeStamp *stamp)
|
void GetCurrentTimeStamp_Linux(SystemTimeStamp *stamp)
|
||||||
{
|
{
|
||||||
clock_gettime(CLOCK_MONOTONIC, &stamp->clockTime);
|
clock_gettime(CLOCK_MONOTONIC_RAW, &stamp->clockTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
long long GetTimeStampExactResolution_Linux()
|
long long GetTimeStampExactResolution_Linux()
|
||||||
|
|
Loading…
Reference in New Issue