summaryrefslogtreecommitdiffstats
path: root/invensense/libinvensense_hal/MPLSensor.cpp
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-11-09 12:56:06 -0600
committerZiyan <jaraidaniel@gmail.com>2016-01-17 22:40:59 +0100
commitf1690f97ba0d95aa73acdc3692bbceb58e6c90bd (patch)
tree39a4f4382afde8928c765ec81819905904bc71b5 /invensense/libinvensense_hal/MPLSensor.cpp
parent9fe751cd9c53c83ff8cb3cc076d4a573fe855043 (diff)
downloaddevice_samsung_tuna-f1690f97ba0d95aa73acdc3692bbceb58e6c90bd.zip
device_samsung_tuna-f1690f97ba0d95aa73acdc3692bbceb58e6c90bd.tar.gz
device_samsung_tuna-f1690f97ba0d95aa73acdc3692bbceb58e6c90bd.tar.bz2
invensense: Ensure timestamps include time in suspend.
Diffstat (limited to 'invensense/libinvensense_hal/MPLSensor.cpp')
-rw-r--r--invensense/libinvensense_hal/MPLSensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/invensense/libinvensense_hal/MPLSensor.cpp b/invensense/libinvensense_hal/MPLSensor.cpp
index aa6c76a..835d46b 100644
--- a/invensense/libinvensense_hal/MPLSensor.cpp
+++ b/invensense/libinvensense_hal/MPLSensor.cpp
@@ -920,7 +920,7 @@ int64_t MPLSensor::now_ns(void)
//FUNC_LOG;
struct timespec ts;
- clock_gettime(CLOCK_MONOTONIC, &ts);
+ clock_gettime(CLOCK_BOOTTIME, &ts);
return (int64_t) ts.tv_sec * 1000000000 + ts.tv_nsec;
}