sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
Timer< T > Class Template Reference

#include <sot/core/timer.hh>

Inheritance diagram for Timer< T >:

Public Member Functions

virtual const std::string & getClassName (void) const
 
 Timer (const std::string &name)
 
virtual void display (std::ostream &os) const
 

Public Attributes

dynamicgraph::SignalPtr< T, int > sigSIN
 
dynamicgraph::SignalTimeDependent< T, int > sigSOUT
 
dynamicgraph::SignalTimeDependent< T, int > sigClockSOUT
 
dynamicgraph::Signal< double, int > timerSOUT
 

Static Public Attributes

static const std::string CLASS_NAME
 

Protected Member Functions

void plug (dynamicgraph::Signal< T, int > &sig)
 
template<bool UseClock>
T & compute (T &t, const int &time)
 
double & getDt (double &res, const int &)
 

Protected Attributes

struct timeval t0 t1
 
clock_t c0
 
clock_t c1
 
double dt
 

Friends

Timer_EXPORT friend std::ostream & operator<< (std::ostream &os, const Timer< T > &timer)
 

Constructor & Destructor Documentation

◆ Timer()

template<class T >
Timer< T >::Timer ( const std::string &  name)

Member Function Documentation

◆ compute()

template<class T >
template<bool UseClock>
T& Timer< T >::compute ( T &  t,
const int &  time 
)
inlineprotected

◆ display()

template<class T >
void Timer< T >::display ( std::ostream &  os) const
virtual

◆ getClassName()

template<class T >
virtual const std::string& Timer< T >::getClassName ( void  ) const
inlinevirtual

◆ getDt()

template<class T >
double& Timer< T >::getDt ( double &  res,
const int &   
)
inlineprotected

◆ plug()

template<class T >
void Timer< T >::plug ( dynamicgraph::Signal< T, int > &  sig)
inlineprotected

Friends And Related Function Documentation

◆ operator<<

template<class T >
Timer_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const Timer< T > &  timer 
)
friend

Member Data Documentation

◆ c0

template<class T >
clock_t Timer< T >::c0
protected

◆ c1

template<class T >
clock_t Timer< T >::c1
protected

◆ CLASS_NAME

template<class T >
const std::string Timer< T >::CLASS_NAME
static

◆ dt

template<class T >
double Timer< T >::dt
protected

◆ sigClockSOUT

template<class T >
dynamicgraph::SignalTimeDependent<T, int> Timer< T >::sigClockSOUT

◆ sigSIN

template<class T >
dynamicgraph::SignalPtr<T, int> Timer< T >::sigSIN

◆ sigSOUT

template<class T >
dynamicgraph::SignalTimeDependent<T, int> Timer< T >::sigSOUT

◆ t1

template<class T >
struct timeval t0 Timer< T >::t1
protected

◆ timerSOUT

template<class T >
dynamicgraph::Signal<double, int> Timer< T >::timerSOUT

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