Helper to initialize the global MockableSteadyClock, let a duration elapse, and reset it after use in a test.
More...
#include <time.h>
Helper to initialize the global MockableSteadyClock, let a duration elapse, and reset it after use in a test.
Definition at line 14 of file time.h.
◆ SteadyClockContext() [1/2]
| SteadyClockContext::SteadyClockContext |
( |
| ) |
|
|
inlineexplicit |
Initialize with INITIAL_MOCK_TIME.
Definition at line 20 of file time.h.
◆ ~SteadyClockContext()
| SteadyClockContext::~SteadyClockContext |
( |
| ) |
|
|
inline |
Unset mocktime.
Definition at line 23 of file time.h.
◆ SteadyClockContext() [2/2]
◆ operator+=()
| void SteadyClockContext::operator+= |
( |
std::chrono::milliseconds |
d | ) |
|
|
inline |
Change mocktime by the given duration delta.
Definition at line 29 of file time.h.
◆ operator=()
The documentation for this class was generated from the following file: