 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
15 PTimer(
size_t ellapsedTime = 1lu);
26 bool isTime(
size_t & ellapsedTimeNs);
35 std::chrono::time_point<std::chrono::steady_clock>
p_startTime;
PTimer(size_t ellapsedTime=1lu)
Default constructor of PTimer.
void initialisationPTimer()
Initialisation function of the class PTimer.
Timer which allows to call function every time a defined ellapsed time is out.
PTimer & operator=(const PTimer &other)
Definition of equal operator of PTimer.
bool isTime()
Returns true if the given ellapsed time between to call is passed.
void copyPTimer(const PTimer &other)
Copy function of PTimer.
virtual ~PTimer()
Destructor of PTimer.
std::chrono::time_point< std::chrono::steady_clock > p_startTime
Clock of the PTimer.
size_t p_ellapsedTime
Ellapsed time between to isTime() returns true (in nanoseconds)
void setEllapsedTime(size_t ellapsedTime)
Set the ellapsed time in nanoseconds.
size_t getEllapsedTime() const
Get the ellapsed time in nanoseconds.
void start()
Start the current clock.