5#ifndef FLUTTER_RUNTIME_DART_TIMESTAMP_PROVIDER_H_
6#define FLUTTER_RUNTIME_DART_TIMESTAMP_PROVIDER_H_
8#include "flutter/fml/time/timestamp_provider.h"
10#include "flutter/fml/macros.h"
11#include "flutter/fml/time/time_point.h"
30 static constexpr int64_t kNanosPerSecond = 1000000000;
32 int64_t ConvertToNanos(int64_t ticks, int64_t frequency);
TimestampProvider implementation that is backed by Dart_TimelineGetTicks.
~DartTimestampProvider() override
fml::TimePoint Now() override
static DartTimestampProvider & Instance()
fml::TimePoint DartTimelineTicksSinceEpoch()