WallClock Class Reference
A Clock implementation that leverages host OS time APIs. More...
#include <Clock.hh>
Public Member Functions | |
bool | IsReady () const override |
Checks whether the clock is ready to be used or not. More... | |
std::chrono::nanoseconds | Time () const override |
Gets clock time. More... | |
Public Member Functions inherited from Clock | |
virtual | ~Clock ()=default |
Virtual destructor. More... | |
Static Public Member Functions | |
static WallClock * | Instance () |
Returns system wall clock interface. More... | |
Detailed Description
A Clock implementation that leverages host OS time APIs.
Member Function Documentation
◆ Instance()
|
static |
Returns system wall clock interface.
- Returns
- The sole wall clock instance (a singleton)
◆ IsReady()
|
overridevirtual |
Checks whether the clock is ready to be used or not.
- Returns
- True if clock is ready to be used, false otherwise
Implements Clock.
◆ Time()
|
overridevirtual |
The documentation for this class was generated from the following file: