tree: d7f0625eecf39e676d0ed802cd83d3e750326454 [path history] [tgz]
  1. include/
  2. test/
  3. BUILD.gn
  4. clock.cc
  5. README.md
zircon/system/ulib/abs_clock/README.md

Abstract clock interface

This library provides a basic abstract clock interface. This simplifies testing code that needs to read time or sleep.

Instead of reading the time directly, such code should instead accept an abstract Clock * object. In production code, this should be instantiated to a RealClock object, while test code can use a FakeClock object, and control how time advances.