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.
| BEGIN_NAMESPACE_ACADO Clock::Clock | ( | ) |
| Clock::Clock | ( | const Clock & | rhs | ) |
|
pure virtual |
Clone constructor (deep copy).
\return Pointer to deep copy of base class type
Implemented in RealClock, and SimulationClock.
|
inline |
Returns current status of clock, see documentation of ClockStatus for details.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Starts time measurement.
Implemented in RealClock, and SimulationClock.
|
pure virtual |
Shifts measured time by a given offset.
@param[in] _timeShift Time offset.
Implemented in RealClock, and SimulationClock.
|
pure virtual |
Stops time measurement.
Implemented in RealClock, and SimulationClock.
|
protected |
|
protected |