summaryrefslogtreecommitdiffstats
path: root/liblog/tests/liblog_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'liblog/tests/liblog_benchmark.cpp')
-rw-r--r--liblog/tests/liblog_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/tests/liblog_benchmark.cpp b/liblog/tests/liblog_benchmark.cpp
index 19406fb..39fe2ad 100644
--- a/liblog/tests/liblog_benchmark.cpp
+++ b/liblog/tests/liblog_benchmark.cpp
@@ -143,7 +143,7 @@ static void BM_log_latency(int iters) {
for (int j = 0, i = 0; i < iters && j < 10*iters; ++i, ++j) {
log_time ts;
LOG_FAILURE_RETRY((
- clock_gettime(CLOCK_REALTIME, &ts),
+ ts = log_time(CLOCK_REALTIME),
android_btWriteLog(0, EVENT_TYPE_LONG, &ts, sizeof(ts))));
for (;;) {