29 #ifndef _USER_TIMER_H_ 30 #define _USER_TIMER_H_ 63 return (
Real(ticks) * 1000.0 /
Real(ticks_per_sec)) / 1000.0;
78 :
Timer(), uAccount(0), uTicks(0), lasttime(0.0)
80 assert(ticks_per_sec > 0);
84 :
Timer(), uAccount(old.uAccount), uTicks(old.uTicks), lasttime(old.lasttime)
86 assert(ticks_per_sec > 0);
91 assert(ticks_per_sec > 0);
114 virtual void start();
135 #endif // _USER_TIMER_H_ clock_t uAccount
user time
UserTimer(const UserTimer &old)
copy constructor
virtual Real lastTime() const
virtual Real time() const
UserTimer()
default constructor
virtual Real stop()
stop timer, return accounted user time.
virtual void start()
start timer, resume accounting user, system and real time.
Debugging, floating point type and parameter definitions.
Real ticks2sec(clock_t ticks) const
convert ticks to secounds.
Everything should be within this namespace.
virtual TYPE type()
return type of timer
virtual void reset()
initialize timer, set timing accounts to zero.
static const long ticks_per_sec
ticks per secound, should be constant
enum soplex::Timer::@15 status
status of the timer
UserTimer & operator=(const UserTimer &old)
assignment operator
Wrapper for the system time query methods.
void updateTicks() const
get actual user ticks from the system.