|
Open Model Railroad Network (OpenMRN)
|
Virtual base class for a real-time clock. More...
#include <Clock.hxx>
Public Member Functions | |
| virtual long long | get_time_nsec ()=0 |
Virtual base class for a real-time clock.
The purpose for this base class is to have a real and a mock implementation. The Clock* pointer can be injected into components that need to use real time for business logic, and then tests can inject a mock or fake clock to drive the test scenario manually without needing to call sleep.
|
pure virtual |