Searched refs:clock_time_ns (Results 1 – 2 of 2) sorted by relevance
32 int64_t clock_time_ns, in SyncClocks() argument42 if (clock_time_ns <= snapshots.back().clock_time_ns) { in SyncClocks()52 snapshots.back().clock_time_ns >= clock_time_ns) { in SyncClocks()57 snapshots.emplace_back(ClockSnapshot{clock_time_ns, trace_time_ns}); in SyncClocks()61 int64_t clock_time_ns) { in ToTraceTime() argument68 return lhs < rhs.clock_time_ns; in ToTraceTime()70 auto it = std::upper_bound(snapshots.begin(), snapshots.end(), clock_time_ns, in ToTraceTime()74 return it->trace_time_ns + (clock_time_ns - it->clock_time_ns); in ToTraceTime()
48 void SyncClocks(ClockDomain, int64_t clock_time_ns, int64_t trace_time_ns);52 base::Optional<int64_t> ToTraceTime(ClockDomain, int64_t clock_time_ns);56 return clocks_[domain].front().clock_time_ns; in GetFirstTimestamp()64 int64_t clock_time_ns; member