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

#include <timer.h>

Public Types

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

Public Member Functions

 StackTicToc (Unit def=MS)
 
void tic ()
 
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 13 of file timer.h.

Member Enumeration Documentation

Enumerator
MS 
US 

Definition at line 15 of file timer.h.

Constructor & Destructor Documentation

StackTicToc::StackTicToc ( Unit  def = MS)
inline

Definition at line 23 of file timer.h.

Member Function Documentation

void StackTicToc::tic ( )
inline

Definition at line 25 of file timer.h.

double StackTicToc::toc ( const Unit  factor)
inline

Definition at line 30 of file timer.h.

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

Definition at line 37 of file timer.h.

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

Definition at line 17 of file timer.h.

Member Data Documentation

Unit StackTicToc::DEFAULT_UNIT

Definition at line 16 of file timer.h.

std::stack<struct timeval> StackTicToc::stack

Definition at line 20 of file timer.h.

struct timeval StackTicToc::t0

Definition at line 21 of file timer.h.


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


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59