 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
13 :p_ellapsedTime(ellapsedTime)
62 size_t ellapsedTimeNs(0lu);
63 return isTime(ellapsedTimeNs);
71 std::chrono::nanoseconds ellapsedTime(std::chrono::steady_clock::now() -
p_startTime);
72 ellapsedTimeNs = ellapsedTime.count();
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.