g2o
Public Member Functions | Protected Attributes | List of all members
g2o::ScopedTictoc Class Reference

Simplify calls to tictoc() for a whole scope. More...

#include <tictoc.h>

Public Member Functions

 ScopedTictoc (const char *algorithmPart)
 
 ~ScopedTictoc ()
 

Protected Attributes

std::string _algorithmPart
 

Detailed Description

Simplify calls to tictoc() for a whole scope.

See also the macro G2O_SCOPED_TICTOC below.

Definition at line 59 of file tictoc.h.

Constructor & Destructor Documentation

g2o::ScopedTictoc::ScopedTictoc ( const char *  algorithmPart)

Definition at line 152 of file tictoc.cpp.

References _algorithmPart, and g2o::tictoc().

152  :
153  _algorithmPart(algorithmPart)
154  {
155  tictoc(_algorithmPart.c_str());
156  }
std::string _algorithmPart
Definition: tictoc.h:65
double tictoc(const char *algorithmPart)
Profile the timing of certain parts of your algorithm.
Definition: tictoc.cpp:115
g2o::ScopedTictoc::~ScopedTictoc ( )

Definition at line 158 of file tictoc.cpp.

References _algorithmPart, and g2o::tictoc().

159  {
160  tictoc(_algorithmPart.c_str());
161  }
std::string _algorithmPart
Definition: tictoc.h:65
double tictoc(const char *algorithmPart)
Profile the timing of certain parts of your algorithm.
Definition: tictoc.cpp:115

Member Data Documentation

std::string g2o::ScopedTictoc::_algorithmPart
protected

Definition at line 65 of file tictoc.h.

Referenced by ScopedTictoc(), and ~ScopedTictoc().


The documentation for this class was generated from the following files: