Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PinocchioTicToc Struct Reference

#include <timer.hpp>

Public Types

enum  Unit { S = 1, MS = 1000, US = 1000000, NS = 1000000000 }
 

Public Member Functions

 PinocchioTicToc (Unit def=MS)
 
void tic ()
 
double toc ()
 
double toc (const Unit factor)
 
void toc (std::ostream &os, double SMOOTH=1)
 

Static Public Member Functions

static std::string unitName (Unit u)
 

Public Attributes

Unit DEFAULT_UNIT
 
std::stack< struct timeval > stack
 
struct timeval t0
 

Detailed Description

Definition at line 47 of file timer.hpp.

Member Enumeration Documentation

Enumerator
MS 
US 
NS 

Definition at line 49 of file timer.hpp.

Constructor & Destructor Documentation

PinocchioTicToc::PinocchioTicToc ( Unit  def = MS)
inline

Definition at line 61 of file timer.hpp.

Member Function Documentation

void PinocchioTicToc::tic ( )
inline

Definition at line 63 of file timer.hpp.

double PinocchioTicToc::toc ( )
inline

Definition at line 68 of file timer.hpp.

double PinocchioTicToc::toc ( const Unit  factor)
inline

Definition at line 70 of file timer.hpp.

void PinocchioTicToc::toc ( std::ostream &  os,
double  SMOOTH = 1 
)
inline

Definition at line 78 of file timer.hpp.

static std::string PinocchioTicToc::unitName ( Unit  u)
inlinestatic

Definition at line 52 of file timer.hpp.

Member Data Documentation

Unit PinocchioTicToc::DEFAULT_UNIT

Definition at line 50 of file timer.hpp.

std::stack<struct timeval> PinocchioTicToc::stack

Definition at line 58 of file timer.hpp.

struct timeval PinocchioTicToc::t0

Definition at line 59 of file timer.hpp.


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


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:05