Public Member Functions | Protected Attributes | List of all members

Allows real time measurements based on the system's clock. More...

#include <real_clock.hpp>

Inheritance diagram for RealClock:
Inheritance graph
[legend]

Public Member Functions

virtual Clockclone () const
 
RealClockoperator= (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)
 
Clockoperator= (const Clock &rhs)
 
virtual returnValue reset ()
 
virtual ~Clock ()
 

Protected Attributes

double lastTimeInstant
 
- Protected Attributes inherited from Clock
double elapsedTime
 
ClockStatus status
 

Detailed Description

Allows real time measurements based on the system's clock.

The class RealClock allows real time measurements based on the system's clock.

Author
Hans Joachim Ferreau, Boris Houska

Definition at line 53 of file real_clock.hpp.

Constructor & Destructor Documentation

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.

RealClock::~RealClock ( )
virtual

Destructor.

Definition at line 54 of file real_clock.cpp.

Member Function Documentation

Clock * RealClock::clone ( ) const
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.

RealClock & RealClock::operator= ( const RealClock rhs)

Assignment Operator (deep copy).

@param[in] rhs      Right-hand side object.

Definition at line 59 of file real_clock.cpp.

returnValue RealClock::start ( )
virtual

Starts time measurement.

Returns
SUCCESSFUL_RETURN,
RET_CLOCK_NOT_READY,
RET_NO_SYSTEM_TIME

Implements Clock.

Definition at line 78 of file real_clock.cpp.

returnValue RealClock::step ( double  _timeShift)
virtual

Shifts measured time by a given offset.

@param[in]  _timeShift              Time offset.
Returns
SUCCESSFUL_RETURN,
RET_CLOCK_NOT_READY,
RET_NO_SYSTEM_TIME

Implements Clock.

Definition at line 94 of file real_clock.cpp.

returnValue RealClock::stop ( )
virtual

Stops time measurement.

Returns
SUCCESSFUL_RETURN,
RET_CLOCK_NOT_READY,
RET_NO_SYSTEM_TIME

Implements Clock.

Definition at line 107 of file real_clock.cpp.

Member Data Documentation

double RealClock::lastTimeInstant
protected

Last time instant at which start() has been called.

Definition at line 123 of file real_clock.hpp.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:26