SoPlex
|
#include <wallclocktimer.h>
Public Member Functions | |
Construction / destruction | |
WallclockTimer () | |
default constructor | |
WallclockTimer (const WallclockTimer &old) | |
copy constructor | |
WallclockTimer & | operator= (const WallclockTimer &old) |
assignment operator | |
virtual | ~WallclockTimer () |
Control | |
virtual void | reset () |
initialize timer, set timing accounts to zero. | |
virtual void | start () |
start timer, resume accounting user, system and real time. | |
virtual Real | stop () |
stop timer, return accounted user time. | |
virtual TYPE | type () |
return type of timer | |
Access | |
virtual Real | time () const |
virtual Real | lastTime () const |
Public Member Functions inherited from Timer | |
Timer () | |
default constructor | |
Timer (const Timer &old) | |
copy constructor | |
Timer & | operator= (const Timer &old) |
assignment operator | |
virtual | ~Timer () |
void | getLastTimes (Real *userTime, Real *systemTime, Real *realTime) const |
return accounted time. get accounted user, system, or real time when ticks were updated last | |
Real | realTimeLast () const |
return accounted real time without rechecking the clock |
Private Member Functions | |
Internal helpers | |
Real | wall2sec (time_t s, time_t us) const |
convert wallclock time to secounds. |
Private Attributes | |
Data | |
time_t | sec |
seconds | |
time_t | usec |
microseconds | |
Real | lasttime |
Additional Inherited Members | |
Public Types inherited from Timer | |
enum | TYPE { OFF = 0 , USER_TIME = 1 , WALLCLOCK_TIME = 2 } |
types of timers More... | |
Protected Types inherited from Timer | |
enum | { RESET , STOPPED , RUNNING } |
status of the timer More... | |
enum soplex::Timer:: { ... } | status |
status of the timer |
Definition at line 38 of file wallclocktimer.h.
WallclockTimer | ( | ) |
default constructor
Definition at line 68 of file wallclocktimer.h.
References lasttime, sec, Timer::Timer(), and usec.
Referenced by operator=(), and WallclockTimer().
WallclockTimer | ( | const WallclockTimer & | old | ) |
copy constructor
Definition at line 72 of file wallclocktimer.h.
References lasttime, sec, Timer::Timer(), usec, and WallclockTimer().
|
virtual |
Definition at line 84 of file wallclocktimer.h.
|
virtual |
WallclockTimer & operator= | ( | const WallclockTimer & | old | ) |
assignment operator
Definition at line 76 of file wallclocktimer.h.
References lasttime, sec, usec, and WallclockTimer().
|
virtual |
initialize timer, set timing accounts to zero.
Implements Timer.
Definition at line 92 of file wallclocktimer.h.
References lasttime, Timer::RESET, sec, Timer::status, and usec.
|
virtual |
start timer, resume accounting user, system and real time.
Implements Timer.
Definition at line 42 of file wallclocktimer.cpp.
References lasttime, Timer::RUNNING, sec, Timer::status, time(), and usec.
|
virtual |
stop timer, return accounted user time.
Implements Timer.
Definition at line 74 of file wallclocktimer.cpp.
References lasttime, Timer::RUNNING, sec, Timer::status, Timer::STOPPED, time(), usec, and wall2sec().
|
virtual |
Implements Timer.
Definition at line 109 of file wallclocktimer.cpp.
References lasttime, Timer::RUNNING, sec, Timer::status, time(), usec, and wall2sec().
|
virtual |
return type of timer
Implements Timer.
Definition at line 106 of file wallclocktimer.h.
References Timer::WALLCLOCK_TIME.
|
private |
convert wallclock time to secounds.
Definition at line 55 of file wallclocktimer.h.
|
mutableprivate |
Definition at line 48 of file wallclocktimer.h.
Referenced by lastTime(), operator=(), reset(), start(), stop(), time(), WallclockTimer(), and WallclockTimer().
|
mutableprivate |
seconds
Definition at line 45 of file wallclocktimer.h.
Referenced by operator=(), reset(), start(), stop(), time(), WallclockTimer(), and WallclockTimer().
|
mutableprivate |
microseconds
Definition at line 46 of file wallclocktimer.h.
Referenced by operator=(), reset(), start(), stop(), time(), WallclockTimer(), and WallclockTimer().