template <ClockTransformationAdapter Adapter>

struct ClockTransformation

Defined at line 54 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

Public Methods

void ClockTransformation<Adapter> (uint64_t options, zx_time_t backstop_time)

Defined at line 56 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

bool is_monotonic ()

Defined at line 59 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

bool is_boot ()

Defined at line 60 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

bool is_continuous ()

Defined at line 61 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

bool is_mappable ()

Defined at line 62 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

bool is_started ()

Defined at line 63 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

zx_status_t Read (zx_time_t * out_now)

Defined at line 125 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

zx_status_t ReadWithBackstop (zx_time_t * out_now, zx_time_t * out_backstop_time)

Reads the current value of the clock, as well as the clock's backstop value.

You can get the same info from GetDetails and some math. But GetDetails

does more work internally, and ends up being slower. In hot code

paths it shows up as perf regressions. If you can't afford to throw away

that extra work, and you need time and backstop only and no other clock

details, then this is a function for you.

Defined at line 144 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

zx_status_t GetDetails (zx_clock_details_v1_t * out_details)

Defined at line 151 of file ../../zircon/kernel/lib/fasttime/include/lib/fasttime/clock.h

Friends

template <ClockTransformationAdapter Adapter>
class ClockDispatcher