Point Cloud Library (PCL)
1.3.1
|
Class to measure the time spent in a scope. More...
#include <pcl/common/time.h>
Public Member Functions | |
ScopeTime (const char *title) | |
~ScopeTime () | |
float | getTime () |
Retrieve the time in milliseconds spent since the last call to reset(). | |
float | 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.
float pcl::StopWatch::getTime | ( | ) | [inline, inherited] |
float pcl::StopWatch::getTimeSeconds | ( | ) | [inline, inherited] |
void pcl::StopWatch::reset | ( | ) | [inline, inherited] |