#include <time_point.h>
Public Types | |
| using | ClockSource = TimePoint(*)() |
Public Member Functions | |
| constexpr | TimePoint ()=default |
| constexpr TimeDelta | ToEpochDelta () const |
| constexpr TimeDelta | operator- (TimePoint other) const |
| constexpr TimePoint | operator+ (TimeDelta duration) const |
| constexpr TimePoint | operator- (TimeDelta duration) const |
| constexpr auto | operator<=> (const TimePoint &other) const =default |
Static Public Member Functions | |
| static void | SetClockSource (ClockSource source) |
| static TimePoint | Now () |
| static TimePoint | CurrentWallTime () |
| static constexpr TimePoint | Min () |
| static constexpr TimePoint | Max () |
| static constexpr TimePoint | FromEpochDelta (TimeDelta ticks) |
| static constexpr TimePoint | FromTicks (int64_t ticks) |
Definition at line 22 of file time_point.h.
| using fml::TimePoint::ClockSource = TimePoint (*)() |
Definition at line 24 of file time_point.h.
|
constexprdefault |
Referenced by CurrentWallTime(), FromEpochDelta(), FromTicks(), Max(), Min(), Now(), operator+(), and operator-().
|
static |
Definition at line 57 of file time_point.cc.
References fml::NanosSinceEpoch(), and TimePoint().
Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd(), flutter::TEST(), and flutter::TEST().
Definition at line 43 of file time_point.h.
References TimePoint(), and fml::TimeDelta::ToNanoseconds().
Referenced by flutter::testing::EmbedderTestTaskRunner::EmbedderTestTaskRunner(), FlutterEngineOnVsync(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::testing::TEST_F().
|
inlinestaticconstexpr |
Definition at line 48 of file time_point.h.
References TimePoint().
Referenced by fml::ChronoTimestampProvider::Now(), and flutter::DartTimestampProvider::Now().
|
inlinestaticconstexpr |
Definition at line 39 of file time_point.h.
References TimePoint().
Referenced by fml::MessageLoopTaskQueues::GetNextTaskToRun(), fml::testing::TEST(), fml::testing::TEST(), fml::testing::TEST(), and fml::testing::TEST().
|
inlinestaticconstexpr |
Definition at line 35 of file time_point.h.
References TimePoint().
|
static |
Definition at line 49 of file time_point.cc.
References fml::NanosSinceEpoch(), and TimePoint().
Referenced by flutter::testing::ShellTestVsyncWaiter::AwaitVSync(), flutter_runner::FlatlandConnection::AwaitVsync(), flutter_runner::FlatlandConnection::AwaitVsyncForSecondaryCallback(), fml::benchmarking::BM_RegisterAndGetTasks(), flutter::testing::PendingTests::CheckTimedOutTests(), flutter::CreateFinishedBuildRecorder(), flutter::PersistentCache::DumpSkp(), flutter::VsyncWaiter::FireCallback(), FlutterEngineGetCurrentTime(), impeller::Playground::GetSecondsElapsed(), flutter::Shell::GetVsyncWaiter(), flutter_runner::testing::FlatlandConnectionTest::OnNextFrameBegin(), fml::TaskRunner::PostDelayedTask(), fml::TaskRunner::PostTask(), flutter::testing::ShellTest::PumpOneFrame(), flutter::FrameTimingsRecorder::RecordRasterEnd(), flutter::Animator::Render(), impeller::ComputePlaygroundTest::SetUp(), impeller::Playground::SetupWindow(), flutter::Stopwatch::Start(), flutter::Stopwatch::Stop(), flutter::testing::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), fml::testing::TEST(), fml::testing::TEST(), fml::testing::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), TEST(), flutter_runner::TEST(), flutter_runner::testing::TEST_F(), flutter_runner::testing::TEST_F(), flutter_runner::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), impeller::testing::TEST_P(), fml::AutoResetWaitableEvent::WaitWithTimeout(), and fml::WaitWithTimeoutImpl().
Definition at line 61 of file time_point.h.
References TimePoint(), and fml::TimeDelta::ToNanoseconds().
Definition at line 64 of file time_point.h.
References TimePoint(), and fml::TimeDelta::ToNanoseconds().
Definition at line 57 of file time_point.h.
References fml::TimeDelta::FromNanoseconds().
|
constexprdefault |
|
static |
Definition at line 45 of file time_point.cc.
Referenced by DartVMInitializer::Initialize().
|
inlineconstexpr |
Definition at line 52 of file time_point.h.
References fml::TimeDelta::FromNanoseconds().
Referenced by flutter::PlatformConfiguration::BeginFrame(), flutter::PersistentCache::DumpSkp(), FlutterEngineGetCurrentTime(), flutter_runner::CompatTaskRunner::PostTaskForTime(), flutter::AndroidEGLSurface::SetPresentationTime(), impeller::ComputePlaygroundTest::SetUp(), impeller::Playground::SetupWindow(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), impeller::testing::TEST_P(), fml::TimerRearm(), fml::tracing::TraceEventAsyncComplete(), and fml::tracing::TraceToString().