From: TaeminYeom Date: Mon, 27 Jun 2022 08:33:22 +0000 (+0900) Subject: Add timestamp in sensor-tool X-Git-Tag: accepted/tizen/unified/20220628.133546^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e397a4e2ee13b667aa1a6733a4011fa753aba79f;p=platform%2Fcore%2Fapi%2Fsensor.git Add timestamp in sensor-tool Change-Id: I7916b26a6023cc2cff425d8398056f4cf33c810d Signed-off-by: TaeminYeom --- diff --git a/tools/sensor-tool.c b/tools/sensor-tool.c index b84917b..5ad4beb 100644 --- a/tools/sensor-tool.c +++ b/tools/sensor-tool.c @@ -30,9 +30,9 @@ static void sensor_callback(sensor_h sensor, sensor_event_s events[], int events else value_count = sensor_infos[num].value_num; - for (int j = 0; j < value_count; ++j) { + for (int j = 0; j < value_count; ++j) g_print("%f ", events[i].values[j]); - } + g_print("time: %lluus", events[i].timestamp); } g_print("\n"); }