tree: 1f10780d09993d48a4cd955e016854fb5f75b94c [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. clock.cc
  4. include/
  5. test/
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.