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

◆ Unit

Enumerator
MS 
US 
NS 

Definition at line 49 of file timer.hpp.

Constructor & Destructor Documentation

◆ PinocchioTicToc()

PinocchioTicToc::PinocchioTicToc ( Unit  def = MS)
inline

Definition at line 77 of file timer.hpp.

Member Function Documentation

◆ tic()

void PinocchioTicToc::tic ( )
inline

Definition at line 82 of file timer.hpp.

◆ toc() [1/3]

double PinocchioTicToc::toc ( )
inline

Definition at line 88 of file timer.hpp.

◆ toc() [2/3]

double PinocchioTicToc::toc ( const Unit  factor)
inline

Definition at line 93 of file timer.hpp.

◆ toc() [3/3]

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

Definition at line 101 of file timer.hpp.

◆ unitName()

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

Definition at line 58 of file timer.hpp.

Member Data Documentation

◆ DEFAULT_UNIT

Unit PinocchioTicToc::DEFAULT_UNIT

Definition at line 56 of file timer.hpp.

◆ stack

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

Definition at line 74 of file timer.hpp.

◆ t0

struct timeval PinocchioTicToc::t0

Definition at line 75 of file timer.hpp.


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


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:14