g2o
Loading...
Searching...
No Matches
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

◆ ScopedTictoc()

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

Definition at line 155 of file tictoc.cpp.

156 : _algorithmPart(algorithmPart) {
157 tictoc(_algorithmPart.c_str());
158}
std::string _algorithmPart
Definition tictoc.h:65
double tictoc(const char *algorithmPart)
Profile the timing of certain parts of your algorithm.
Definition tictoc.cpp:118

References _algorithmPart, and g2o::tictoc().

◆ ~ScopedTictoc()

g2o::ScopedTictoc::~ScopedTictoc ( )

Definition at line 160 of file tictoc.cpp.

160{ tictoc(_algorithmPart.c_str()); }

References _algorithmPart, and g2o::tictoc().

Member Data Documentation

◆ _algorithmPart

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: