From 5c57255274204141f462a6c3eca19b406f70b219 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Sat, 12 Mar 2016 21:58:06 +1100 Subject: n7100: libsensors: use CLOCK_BOOTTIME, not CLOCK_MONOTONIC Change-Id: Ib3d5596e694ff553ed843cc7ff3525c73944ef6c --- libsensors/SensorBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsensors/SensorBase.cpp b/libsensors/SensorBase.cpp index 77c6865..5742ed2 100644 --- a/libsensors/SensorBase.cpp +++ b/libsensors/SensorBase.cpp @@ -88,7 +88,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; } -- cgit v1.2.3