Allows real time measurements based on the system's clock. More...
#include <real_clock.hpp>
Public Member Functions | |
virtual Clock * | clone () const |
RealClock & | operator= (const RealClock &rhs) |
RealClock () | |
RealClock (const RealClock &rhs) | |
virtual returnValue | start () |
virtual returnValue | step (double _timeShift) |
virtual returnValue | stop () |
virtual | ~RealClock () |
Public Member Functions inherited from Clock | |
Clock () | |
Clock (const Clock &rhs) | |
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 | ~Clock () |
Protected Attributes | |
double | lastTimeInstant |
Protected Attributes inherited from Clock | |
double | elapsedTime |
ClockStatus | status |
Allows real time measurements based on the system's clock.
The class RealClock allows real time measurements based on the system's clock.
Definition at line 53 of file real_clock.hpp.
BEGIN_NAMESPACE_ACADO RealClock::RealClock | ( | ) |
Default constructor.
Definition at line 42 of file real_clock.cpp.
RealClock::RealClock | ( | const RealClock & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 48 of file real_clock.cpp.
|
virtual |
Destructor.
Definition at line 54 of file real_clock.cpp.
|
virtual |
Clone constructor (deep copy).
\return Pointer to deep copy of base class type
Implements Clock.
Definition at line 72 of file real_clock.cpp.
Assignment Operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 59 of file real_clock.cpp.
|
virtual |
Starts time measurement.
Implements Clock.
Definition at line 78 of file real_clock.cpp.
|
virtual |
Shifts measured time by a given offset.
@param[in] _timeShift Time offset.
Implements Clock.
Definition at line 94 of file real_clock.cpp.
|
virtual |
Stops time measurement.
Implements Clock.
Definition at line 107 of file real_clock.cpp.
|
protected |
Last time instant at which start() has been called.
Definition at line 123 of file real_clock.hpp.