11DartTimestampProvider::DartTimestampProvider() =
default;
15int64_t DartTimestampProvider::ConvertToNanos(int64_t ticks,
17 int64_t nano_seconds = (ticks / frequency) * kNanosPerSecond;
18 int64_t leftover_ticks = ticks % frequency;
19 int64_t leftover_nanos = (leftover_ticks * kNanosPerSecond) / frequency;
20 return nano_seconds + leftover_nanos;
27 if (frequency != kNanosPerSecond) {
~DartTimestampProvider() override
fml::TimePoint Now() override
static DartTimestampProvider & Instance()
static constexpr TimePoint FromTicks(int64_t ticks)
fml::TimePoint DartTimelineTicksSinceEpoch()