20 #ifndef _USER_TIMER_H_ 21 #define _USER_TIMER_H_ 54 return (
Real(ticks) * 1000.0 /
Real(ticks_per_sec)) / 1000.0;
69 :
Timer(), uAccount(0), uTicks(0), lasttime(0.0)
71 assert(ticks_per_sec > 0);
75 :
Timer(), uAccount(old.uAccount), uTicks(old.uTicks), lasttime(old.lasttime)
77 assert(ticks_per_sec > 0);
82 assert(ticks_per_sec > 0);
105 virtual void start();
126 #endif // _USER_TIMER_H_
UserTimer(const UserTimer &old)
copy constructor
Real ticks2sec(long ticks) const
convert ticks to secounds.
enum soplex::Timer::@2 status
status of the timer
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.
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
UserTimer & operator=(const UserTimer &old)
assignment operator
Wrapper for the system time query methods.
void updateTicks() const
get actual user ticks from the system.