Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

linux: use CLOCK_MONOTONIC_RAW as this is not subject to NTP

  • Loading branch information...
commit 9e02c0fb45415e3865a80cc918e8ff9fa815c9b5 1 parent 0bccb5e
@FernetMenta authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  xbmc/threads/SystemClock.cpp
  2. +1 −1  xbmc/utils/TimeUtils.cpp
View
2  xbmc/threads/SystemClock.cpp
@@ -42,7 +42,7 @@ namespace XbmcThreads
now_time = (uint64_t)timeGetTime();
#else
struct timespec ts = {};
- clock_gettime(CLOCK_MONOTONIC, &ts);
+ clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
now_time = (ts.tv_sec * 1000) + (ts.tv_nsec / 1000000);
#endif
if (!start_time_set)
View
2  xbmc/utils/TimeUtils.cpp
@@ -43,7 +43,7 @@ int64_t CurrentHostCounter(void)
return( (int64_t)PerformanceCount.QuadPart );
#else
struct timespec now;
- clock_gettime(CLOCK_MONOTONIC, &now);
+ clock_gettime(CLOCK_MONOTONIC_RAW, &now);
return( ((int64_t)now.tv_sec * 1000000000L) + now.tv_nsec );
#endif
}
Please sign in to comment.
Something went wrong with that request. Please try again.