#include <sot/core/timer.hh>
List of all members.
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::SignalTimeDependent< T, int > | sigClockSOUT |
dg::Signal< double, int > | timerSOUT |
Static Public Attributes |
static const std::string | CLASS_NAME |
Protected Member Functions |
void | plug (dg::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) |
template<class T>
class Timer< T >
Constructor & Destructor Documentation
Member Function Documentation
template<class T >
void Timer< T >::commandLine |
( |
const std::string & |
cmdLine, |
|
|
std::istringstream & |
cmdArgs, |
|
|
std::ostream & |
os |
|
) |
| [virtual] |
template<class T >
template<bool UseClock>
T& Timer< T >::compute |
( |
T & |
t, |
|
|
const int & |
time |
|
) |
| [inline, protected] |
template<class T >
void Timer< T >::display |
( |
std::ostream & |
os | ) |
const [virtual] |
template<class T >
virtual const std::string& Timer< T >::getClassName |
( |
void |
| ) |
const [inline, virtual] |
template<class T >
double& Timer< T >::getDt |
( |
double & |
res, |
|
|
const int & |
|
|
) |
| [inline, protected] |
Friends And Related Function Documentation
template<class T >
Timer_EXPORT friend std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Timer< T > & |
timer |
|
) |
| [friend] |
Member Data Documentation
template<class T >
struct timeval t0 Timer< T >::t1 [protected] |