class ClockSnapshot
Defined at line 19 of file ../../src/media/audio/lib/clock/clock_snapshot.h
A snapshot of a clock at a single moment in time. The API is similar to that of a `const Clock`.
This is a value type that supports copy and assignment.
Public Methods
void ClockSnapshot (const std::shared_ptr<const Clock> & clock, zx::time mono_time)
Create a snapshot of the given clock at the given monotonic time.
Defined at line 22 of file ../../src/media/audio/lib/clock/clock_snapshot.h
std::string_view name ()
Defined at line 29 of file ../../src/media/audio/lib/clock/clock_snapshot.h
zx_koid_t koid ()
Defined at line 30 of file ../../src/media/audio/lib/clock/clock_snapshot.h
uint32_t domain ()
Defined at line 31 of file ../../src/media/audio/lib/clock/clock_snapshot.h
zx::time now ()
Returns when the snapshot was taken according to the snapshotted clock.
Defined at line 34 of file ../../src/media/audio/lib/clock/clock_snapshot.h
zx::time mono_now ()
Returns when the snapshot was taken according to the system monotonic clock.
Defined at line 37 of file ../../src/media/audio/lib/clock/clock_snapshot.h
Clock::ToClockMonoSnapshot to_clock_mono_snapshot ()
Returns the TimelineFunction for the current snapshot.
Defined at line 40 of file ../../src/media/audio/lib/clock/clock_snapshot.h
media::TimelineFunction to_clock_mono ()
Defined at line 41 of file ../../src/media/audio/lib/clock/clock_snapshot.h
zx::time ReferenceTimeFromMonotonicTime (zx::time mono_time)
Returns the reference time equivalent to the given system monotonic time.
Defined at line 44 of file ../../src/media/audio/lib/clock/clock_snapshot.h
zx::time MonotonicTimeFromReferenceTime (zx::time ref_time)
Returns the system monotonic time equivalent to the given reference time.
Defined at line 49 of file ../../src/media/audio/lib/clock/clock_snapshot.h