Point Cloud Library (PCL)
1.8.1
|
Class to measure the time spent in a scope. More...
#include <pcl/common/time.h>
Public Member Functions | |
ScopeTime (const char *title) | |
ScopeTime () | |
~ScopeTime () | |
![]() | |
StopWatch () | |
Constructor. More... | |
virtual | ~StopWatch () |
Destructor. More... | |
double | getTime () |
Retrieve the time in milliseconds spent since the last call to reset(). More... | |
double | getTimeSeconds () |
Retrieve the time in seconds spent since the last call to reset(). More... | |
void | reset () |
Reset the stopwatch to 0. More... | |
Additional Inherited Members | |
![]() | |
boost::posix_time::ptime | start_time_ |
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:
|
inline |
Definition at line 120 of file time.h.
References pcl::StopWatch::start_time_.
|
inline |
Definition at line 126 of file time.h.
References pcl::StopWatch::start_time_.
|
inline |
Definition at line 132 of file time.h.
References pcl::StopWatch::getTime().