Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
FakeClock.cxx
Go to the documentation of this file.
1
36#include "os/FakeClock.hxx"
37
38#ifdef GTEST
39
40extern "C"
41{
42
43long long os_get_fake_time(void)
44{
46 {
48 }
49 else
50 {
51 return -1;
52 }
53}
54
55} // extern C
56
57#endif // GTEST
long long get_time_nsec()
Definition FakeClock.hxx:86
static FakeClock * instance()
Definition Singleton.hxx:77
static bool exists()
Definition Singleton.hxx:83
long long os_get_fake_time(void)
Get the fake time for a unit test.