Clock Class Referenceabstract
A Clock interface for time tracking. More...
#include <Clock.hh>
Public Member Functions | |
virtual | ~Clock ()=default |
Virtual destructor. | |
virtual bool | IsReady () const =0 |
Checks whether the clock is ready to be used or not. | |
virtual std::chrono::nanoseconds | Time () const =0 |
Gets clock time. | |
Detailed Description
A Clock interface for time tracking.
Constructor & Destructor Documentation
◆ ~Clock()
|
virtualdefault |
Virtual destructor.
Member Function Documentation
◆ IsReady()
|
pure virtual |
Checks whether the clock is ready to be used or not.
- Returns
- True if clock is ready to be used, false otherwise
Implemented in NetworkClock, and WallClock.
◆ Time()
|
pure virtual |
Gets clock time.
- Returns
- Current clock time, in nanoseconds
Implemented in NetworkClock, and WallClock.
The documentation for this class was generated from the following file: