Virtual base class for a real-time clock.
virtual long long get_time_nsec()=0
Fake implementation of Clock that returns an injected time.
MockClock(long long time)
Consturctor.
void set_time(long long time)
long long time_
Current mock time.
long long get_time_nsec()
Implementation of Clock that returns the current real time form the OS.
long long get_time_nsec()
long long os_get_time_monotonic(void)
Get the monotonic time since the system started.