Index: base/trace_event/trace_event_android.cc |
diff --git a/base/trace_event/trace_event_android.cc b/base/trace_event/trace_event_android.cc |
index 26bd0c777d4be216db025546b9d2f4932e0b1395..91ed6e3cf08f5c140c3b68b458ea5dbaf6eaa84d 100644 |
--- a/base/trace_event/trace_event_android.cc |
+++ b/base/trace_event/trace_event_android.cc |
@@ -187,8 +187,7 @@ void TraceLog::AddClockSyncMetadataEvent() { |
// debugfs that takes the written data and pushes it onto the trace |
// buffer. So, to establish clock sync, we write our monotonic clock into that |
// trace buffer. |
- TimeTicks now = TimeTicks::NowFromSystemTraceTime(); |
- double now_in_seconds = now.ToInternalValue() / 1000000.0; |
+ double now_in_seconds = (TraceTicks::Now() - TraceTicks()).InSecondsF(); |
std::string marker = StringPrintf( |
"trace_event_clock_sync: parent_ts=%f\n", now_in_seconds); |
if (write(atrace_fd, marker.c_str(), marker.size()) == -1) |