#include <time_delta.h>
Public Member Functions | |
| constexpr | TimeDelta ()=default |
| constexpr int64_t | ToNanoseconds () const |
| constexpr int64_t | ToMicroseconds () const |
| constexpr int64_t | ToMilliseconds () const |
| constexpr int64_t | ToSeconds () const |
| constexpr double | ToNanosecondsF () const |
| constexpr double | ToMicrosecondsF () const |
| constexpr double | ToMillisecondsF () const |
| constexpr double | ToSecondsF () const |
| constexpr TimeDelta | operator- (TimeDelta other) const |
| constexpr TimeDelta | operator+ (TimeDelta other) const |
| constexpr TimeDelta | operator/ (int64_t divisor) const |
| constexpr int64_t | operator/ (TimeDelta other) const |
| constexpr TimeDelta | operator* (int64_t multiplier) const |
| constexpr TimeDelta | operator% (TimeDelta other) const |
| constexpr auto | operator<=> (const TimeDelta &other) const =default |
| struct timespec | ToTimespec () |
Static Public Member Functions | |
| static constexpr TimeDelta | Zero () |
| static constexpr TimeDelta | Min () |
| static constexpr TimeDelta | Max () |
| static constexpr TimeDelta | FromNanoseconds (int64_t nanos) |
| static constexpr TimeDelta | FromMicroseconds (int64_t micros) |
| static constexpr TimeDelta | FromMilliseconds (int64_t millis) |
| static constexpr TimeDelta | FromSeconds (int64_t seconds) |
| static constexpr TimeDelta | FromSecondsF (double seconds) |
| static constexpr TimeDelta | FromMillisecondsF (double millis) |
| static constexpr TimeDelta | FromTimespec (struct timespec ts) |
Definition at line 29 of file time_delta.h.
|
constexprdefault |
Referenced by FromNanoseconds(), Max(), Min(), and Zero().
|
inlinestaticconstexpr |
Definition at line 43 of file time_delta.h.
References FromNanoseconds().
Referenced by FromMilliseconds(), flutter::RuntimeController::NotifyIdle(), flutter::testing::TEST(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
|
inlinestaticconstexpr |
Definition at line 46 of file time_delta.h.
References FromMicroseconds().
Referenced by flutter::DartFileModifiedCallback(), FromSeconds(), flutter::RuntimeController::NotifyIdle(), flutter::testing::TEST(), impeller::testing::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), TEST(), fml::testing::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), fml::testing::TEST(), fml::testing::TEST(), fml::testing::TEST(), flutter_runner::TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::ShellTest::VSyncFlush().
|
inlinestaticconstexpr |
Definition at line 57 of file time_delta.h.
References FromNanoseconds().
Referenced by flutter::TEST(), flutter::TEST(), flutter::TEST(), flutter::TEST(), and flutter::TEST().
|
inlinestaticconstexpr |
Definition at line 40 of file time_delta.h.
References TimeDelta().
Referenced by flutter::testing::EmbedderTestTaskRunner::EmbedderTestTaskRunner(), FlutterEngineOnVsync(), FromMicroseconds(), FromMillisecondsF(), FromSecondsF(), FromTimespec(), operator%(), operator*(), operator+(), operator-(), fml::TimePoint::operator-(), operator/(), flutter::testing::TEST(), and fml::TimePoint::ToEpochDelta().
|
inlinestaticconstexpr |
Definition at line 49 of file time_delta.h.
References FromMilliseconds().
Referenced by flutter::DartFileModifiedCallback(), FromTimespec(), GetTestTimeout(), flutter_runner::testing::FlatlandConnectionTest::OnNextFrameBegin(), flutter::testing::SkiaGpuObjectTest::SkiaGpuObjectTest(), flutter::StartTestSuite(), flutter_runner::testing::TEST_F(), flutter_runner::testing::TEST_F(), and flutter::testing::TEST_F().
|
inlinestaticconstexpr |
Definition at line 53 of file time_delta.h.
References FromNanoseconds().
Referenced by flutter::testing::ShellTest::PumpOneFrame(), flutter::SamplingProfiler::Start(), flutter::TEST(), and TEST().
|
inlinestaticconstexpr |
Definition at line 101 of file time_delta.h.
References FromNanoseconds(), and FromSeconds().
|
inlinestaticconstexpr |
Definition at line 37 of file time_delta.h.
References TimeDelta().
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
|
inlinestaticconstexpr |
Definition at line 34 of file time_delta.h.
References TimeDelta().
Definition at line 95 of file time_delta.h.
References FromNanoseconds().
|
inlineconstexpr |
Definition at line 91 of file time_delta.h.
References FromNanoseconds().
Definition at line 79 of file time_delta.h.
References FromNanoseconds().
Definition at line 75 of file time_delta.h.
References FromNanoseconds().
|
inlineconstexpr |
Definition at line 83 of file time_delta.h.
References FromNanoseconds().
|
inlineconstexpr |
Definition at line 87 of file time_delta.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 62 of file time_delta.h.
References ToNanoseconds().
Referenced by flutter::PlatformConfiguration::BeginFrame(), flutter::RuntimeController::NotifyIdle(), flutter::testing::TEST_F(), ToMilliseconds(), and fml::tracing::TraceEventAsyncComplete().
|
inlineconstexpr |
Definition at line 67 of file time_delta.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 68 of file time_delta.h.
Referenced by flutter::PerformanceOverlayLayer::MakeStatisticsText(), and flutter::DlStopwatchVisualizer::Visualize().
|
inlineconstexpr |
Definition at line 61 of file time_delta.h.
Referenced by flutter::PersistentCache::DumpSkp(), FlutterEngineGetCurrentTime(), fml::TimePoint::FromEpochDelta(), fml::TimePoint::operator+(), fml::TimePoint::operator-(), flutter_runner::CompatTaskRunner::PostDelayedTask(), flutter_runner::CompatTaskRunner::PostTaskForTime(), flutter::AndroidEGLSurface::SetPresentationTime(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), fml::TimerRearm(), ToMicroseconds(), fml::tracing::TraceToString(), fml::AutoResetWaitableEvent::WaitWithTimeout(), and fml::WaitWithTimeoutImpl().
|
inlineconstexpr |
Definition at line 66 of file time_delta.h.
|
inlineconstexpr |
Definition at line 64 of file time_delta.h.
References ToMilliseconds().
Referenced by flutter::testing::PendingTests::CheckTimedOutTests(), and flutter::testing::TestTimeoutListener::TestTimeoutListener().
|
inlineconstexpr |
Definition at line 71 of file time_delta.h.
Referenced by impeller::testing::TEST_P().
|
inline |
Definition at line 105 of file time_delta.h.
|
inlinestaticconstexpr |
Definition at line 33 of file time_delta.h.
References TimeDelta().
Referenced by flutter::Stopwatch::Stopwatch(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().