summaryrefslogtreecommitdiff
path: root/6515/libsensors_iio/SensorBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to '6515/libsensors_iio/SensorBase.cpp')
-rwxr-xr-x6515/libsensors_iio/SensorBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/6515/libsensors_iio/SensorBase.cpp b/6515/libsensors_iio/SensorBase.cpp
index 544ac15..f1d00fb 100755
--- a/6515/libsensors_iio/SensorBase.cpp
+++ b/6515/libsensors_iio/SensorBase.cpp
@@ -143,7 +143,7 @@ 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;
}