#include <sot/core/timer.hh>
Public Member Functions | |
virtual const std::string & | getClassName (void) const |
Timer (const std::string &name) | |
virtual void | display (std::ostream &os) const |
virtual void | commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os) |
Public Attributes | |
dg::SignalPtr< T, int > | sigSIN |
dg::SignalTimeDependent< T, int > | sigSOUT |
dg::Signal< double, int > | timerSOUT |
Static Public Attributes | |
static const std::string | CLASS_NAME |
Protected Member Functions | |
void | plug (dg::Signal< T, int > &sig) |
T & | compute (T &t, const int &time) |
double & | getDt (double &res, const int &) |
Protected Attributes | |
struct timeval t0 | t1 |
double | dt |
Friends | |
Timer_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Timer< T > &timer) |
void Timer< T >::commandLine | ( | const std::string & | cmdLine, |
std::istringstream & | cmdArgs, | ||
std::ostream & | os | ||
) | [virtual] |
Reimplemented from dynamicgraph::Entity.
References sotDEBUGIN, and sotDEBUGOUT.
References sotDEBUG, sotDEBUGIN, and sotDEBUGOUT.
Reimplemented from dynamicgraph::Entity.
virtual const std::string& Timer< T >::getClassName | ( | void | ) | const [inline, virtual] |
Implements dynamicgraph::Entity.
Referenced by Timer< T >::Timer().
void Timer< T >::plug | ( | dg::Signal< T, int > & | sig | ) | [inline, protected] |
Timer_EXPORT friend std::ostream& operator<< | ( | std::ostream & | os, |
const Timer< T > & | timer | ||
) | [friend] |
const std::string Timer< T >::CLASS_NAME [static] |
dg::SignalPtr<T,int> Timer< T >::sigSIN |
Referenced by Timer< T >::Timer().
dg::SignalTimeDependent<T,int> Timer< T >::sigSOUT |
Referenced by Timer< T >::Timer().
dg::Signal<double,int> Timer< T >::timerSOUT |
Referenced by Timer< T >::Timer().