diff options
| author | Gabriele M <moto.falcon.git@gmail.com> | 2016-03-08 19:15:31 +0100 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-26 06:52:33 -0700 |
| commit | c057f6d5d6da9da912d437bac8e6ca147337d54f (patch) | |
| tree | 70eb2016458061d77fdf7a509840396be1235411 | |
| parent | 874a7443ac7a28095d9030c8a0a2495502681b39 (diff) | |
msm8226-common: sensors: Use CLOCK_BOOTIME (falcon-peregrine)
As per the Android CCD, timestamps must be synchronized with the
elapsedRealtimeNano clock, so use CLOCK_BOOTIME.
Change-Id: I897fc49a330f611dc2353403c06bbd42353eee44
| -rw-r--r-- | libsensors/falcon-peregrine/SensorBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/falcon-peregrine/SensorBase.cpp b/libsensors/falcon-peregrine/SensorBase.cpp index 7b48767..01d1c44 100644 --- a/libsensors/falcon-peregrine/SensorBase.cpp +++ b/libsensors/falcon-peregrine/SensorBase.cpp @@ -85,7 +85,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; } |
