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
}
Definition at line 110 of file time.h.
| double pcl::StopWatch::getTime | ( | ) | [inline, inherited] |
| double pcl::StopWatch::getTimeSeconds | ( | ) | [inline, inherited] |
| void pcl::StopWatch::reset | ( | ) | [inline, inherited] |
1.6.1