diff options
Diffstat (limited to 'libsensors/SensorBase.cpp')
-rw-r--r-- | libsensors/SensorBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/SensorBase.cpp b/libsensors/SensorBase.cpp index dcb3acc..d388db5 100644 --- a/libsensors/SensorBase.cpp +++ b/libsensors/SensorBase.cpp @@ -85,7 +85,7 @@ bool SensorBase::hasPendingEvents() const { int64_t SensorBase::getTimestamp() { struct timespec t; t.tv_sec = t.tv_nsec = 0; - clock_gettime(CLOCK_MONOTONIC, &t); + clock_gettime(CLOCK_BOOTTIME, &t); return int64_t(t.tv_sec)*1000000000LL + t.tv_nsec; } |