pinocchio  3.9.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
PinocchioTicToc Struct Reference

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

enum Unit

Definition at line 49 of file timer.hpp.

Constructor & Destructor Documentation

◆ PinocchioTicToc()

PinocchioTicToc(Unitdef = MS)
inline

Definition at line 77 of file timer.hpp.

Member Function Documentation

◆ tic()

void tic()
inline

Definition at line 82 of file timer.hpp.

◆ toc() [1/3]

double toc()
inline

Definition at line 88 of file timer.hpp.

◆ toc() [2/3]

double toc(const Unitfactor)
inline

Definition at line 93 of file timer.hpp.

◆ toc() [3/3]

void toc(std::ostream &os,
doubleSMOOTH = 1 )
inline

Definition at line 101 of file timer.hpp.

◆ unitName()

std::string unitName(Unitu)
inlinestatic

Definition at line 58 of file timer.hpp.

Member Data Documentation

◆ DEFAULT_UNIT

Unit DEFAULT_UNIT

Definition at line 56 of file timer.hpp.

◆ stack

std::stack<struct timeval> stack

Definition at line 74 of file timer.hpp.

◆ t0

struct timeval t0

Definition at line 75 of file timer.hpp.


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