Class to measure the time spent in a scope. More...
#include <time.h>

Public Member Functions | |
| ScopeTime (const char *title) | |
| ScopeTime () | |
| ~ScopeTime () | |
Private Attributes | |
| std::string | title_ |
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 an instance at the beginning of the function. Example:
{
pcl::ScopeTime t1 ("calculation");
// ... perform calculation here
}
Definition at line 114 of file common/time.h.
| pcl::ScopeTime::ScopeTime | ( | const char * | title | ) | [inline] |
Definition at line 117 of file common/time.h.
| pcl::ScopeTime::ScopeTime | ( | ) | [inline] |
Definition at line 123 of file common/time.h.
| pcl::ScopeTime::~ScopeTime | ( | ) | [inline] |
Definition at line 129 of file common/time.h.
std::string pcl::ScopeTime::title_ [private] |
Definition at line 136 of file common/time.h.