g2o
|
Class to measure the time spent in a scope. More...
#include <timeutil.h>
Public Member Functions | |
ScopeTime (const char *title) | |
~ScopeTime () | |
Private Attributes | |
std::string | _title |
double | _startTime |
Class to measure the time spent in a scope.
To use this class, e.g. to measure the time spent in a function, just create and instance at the beginning of the function.
Definition at line 115 of file timeutil.h.
g2o::ScopeTime::ScopeTime | ( | const char * | title | ) |
Definition at line 107 of file timeutil.cpp.
g2o::ScopeTime::~ScopeTime | ( | ) |
Definition at line 109 of file timeutil.cpp.
References _startTime, _title, and g2o::get_monotonic_time().
|
private |
Definition at line 121 of file timeutil.h.
Referenced by ~ScopeTime().
|
private |
Definition at line 120 of file timeutil.h.
Referenced by ~ScopeTime().