aboutsummaryrefslogtreecommitdiff
path: root/apps/sensor_world
diff options
context:
space:
mode:
authorMeng-hsuan Chung <menghsuan@google.com>2017-06-19 14:05:16 -0700
committerMeng-hsuan Chung <menghsuan@google.com>2017-06-27 15:07:57 -0700
commit91b47dcec11223b668e48ed180113bb1a25f3e6e (patch)
treea9d5ce47388997a48e391e96cf00b0df75409a62 /apps/sensor_world
parent2bc7fe768fa25378a24862a53db219f2de78bb86 (diff)
downloadchre-91b47dcec11223b668e48ed180113bb1a25f3e6e.tar.gz
Modify logging to aid batching testing
Bug: 62206095 Test: run SensorWorld to observe expected logging Change-Id: Ia067b656077420e46dcb805ef78e0bcbca857a1a
Diffstat (limited to 'apps/sensor_world')
-rw-r--r--apps/sensor_world/sensor_world.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/sensor_world/sensor_world.cc b/apps/sensor_world/sensor_world.cc
index 743f7efd..b013d4f9 100644
--- a/apps/sensor_world/sensor_world.cc
+++ b/apps/sensor_world/sensor_world.cc
@@ -207,8 +207,10 @@ void nanoappHandleEvent(uint32_t senderInstanceId,
getSensorNameForEventType(eventType), header.readingCount, x, y, z);
if (eventType == CHRE_EVENT_SENSOR_UNCALIBRATED_GYROSCOPE_DATA) {
- LOGI("UncalGyro time: last sample %" PRIu64 " chre %" PRIu64
- " delta %" PRId64 "ms", sampleTime, chreTime,
+ LOGI("UncalGyro time: first %" PRIu64 " last %" PRIu64 " chre %" PRIu64
+ " delta [%" PRId64 ", %" PRId64 "]ms",
+ header.baseTimestamp, sampleTime, chreTime,
+ static_cast<int64_t>(header.baseTimestamp - chreTime) / 1000000,
static_cast<int64_t>(sampleTime - chreTime) / 1000000);
}
break;