Base class for all kind of time measurements. More...
#include <clock.hpp>
Public Member Functions | |
Clock () | |
Clock (const Clock &rhs) | |
virtual Clock * | clone () const =0 |
ClockStatus | getStatus () const |
virtual returnValue | getTime (double &_elapsedTime) |
virtual double | getTime () |
virtual returnValue | init (double _initialTime) |
Clock & | operator= (const Clock &rhs) |
virtual returnValue | reset () |
virtual returnValue | start ()=0 |
virtual returnValue | step (double _timeShift)=0 |
virtual returnValue | stop ()=0 |
virtual | ~Clock () |
Protected Attributes | |
double | elapsedTime |
ClockStatus | status |
Base class for all kind of time measurements.
The class Clock serves as base class for all kind of time measurements, both real and simulated ones.
Clock::Clock | ( | const Clock & | rhs | ) |
Clock::~Clock | ( | ) | [virtual] |
virtual Clock* Clock::clone | ( | ) | const [pure virtual] |
Clone constructor (deep copy).
Implemented in RealClock, and SimulationClock.
ClockStatus Clock::getStatus | ( | ) | const [inline] |
Returns current status of clock, see documentation of ClockStatus for details.
returnValue Clock::getTime | ( | double & | _elapsedTime | ) | [virtual] |
double Clock::getTime | ( | ) | [virtual] |
returnValue Clock::init | ( | double | _initialTime | ) | [virtual] |
returnValue Clock::reset | ( | ) | [virtual] |
virtual returnValue Clock::start | ( | ) | [pure virtual] |
Starts time measurement.
Implemented in RealClock, and SimulationClock.
virtual returnValue Clock::step | ( | double | _timeShift | ) | [pure virtual] |
Shifts measured time by a given offset.
[in] | _timeShift | Time offset. |
Implemented in RealClock, and SimulationClock.
virtual returnValue Clock::stop | ( | ) | [pure virtual] |
Stops time measurement.
Implemented in RealClock, and SimulationClock.
double Clock::elapsedTime [protected] |
ClockStatus Clock::status [protected] |