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.   | |
| std::chrono::nanoseconds | Time () const override | 
| Gets clock time.   | |
  Public Member Functions inherited from Clock | |
| virtual | ~Clock ()=default | 
| Virtual destructor.   | |
Static Public Member Functions | |
| static WallClock * | Instance () | 
| Returns system wall clock interface.   | |
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:
 Public Member Functions inherited from