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

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

Detailed Description

Definition at line 13 of file timer.h.

Member Enumeration Documentation


Definition at line 15 of file timer.h.

Constructor & Destructor Documentation

StackTicToc::StackTicToc ( Unit  def = MS)

Definition at line 23 of file timer.h.

Member Function Documentation

void StackTicToc::tic ( )

Definition at line 25 of file timer.h.

double StackTicToc::toc ( const Unit  factor)

Definition at line 30 of file timer.h.

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

Definition at line 37 of file timer.h.

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

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:

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