class Clock

Defined at line 27 of file ../../zircon/system/ulib/abs_clock/include/abs_clock/clock.h

An abstract clock interface.

This simplifies testing code that needs access to time. Code should

accept an abstract |Clock *| and use the provided methods.

In a production, the the code should be passed an instance of

RealClock, which uses the standard kernel-provided time mechanisms.

Test code, however, can pass in a FakeClock, which allows test code

to take control over time as required.

Public Methods

zx::time Now ()

Return the current time.

void SleepUntil (zx::time deadline)

Sleep until the given deadline.

void ~Clock ()

Defined at line 29 of file ../../zircon/system/ulib/abs_clock/include/abs_clock/clock.h