|
Point Cloud Library (PCL)
1.6.0
|
Class to measure the time spent in a scope. More...
#include <pcl/common/time.h>


Public Member Functions | |
| ScopeTime (const char *title) | |
| ScopeTime () | |
| ~ScopeTime () | |
| double | getTime () |
| Retrieve the time in milliseconds spent since the last call to reset(). | |
| double | getTimeSeconds () |
| Retrieve the time in seconds spent since the last call to reset(). | |
| void | reset () |
| Reset the stopwatch to 0. | |
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
}
| pcl::ScopeTime::ScopeTime | ( | const char * | title | ) | [inline] |
| pcl::ScopeTime::ScopeTime | ( | ) | [inline] |
| pcl::ScopeTime::~ScopeTime | ( | ) | [inline] |
| double pcl::StopWatch::getTime | ( | ) | [inline, inherited] |
| double pcl::StopWatch::getTimeSeconds | ( | ) | [inline, inherited] |
| void pcl::StopWatch::reset | ( | ) | [inline, inherited] |
1.7.6.1