Class to measure the time spent in a scope. More...
#include <pcl/common/time.h>
Public Member Functions | |
ScopeTime (const std::string &title="") | |
~ScopeTime () | |
Public Member Functions inherited from pcl::StopWatch | |
StopWatch () | |
Constructor. More... |
|
double | getTime () const |
Retrieve the time in milliseconds spent since the last call to reset(). More... |
|
double | getTimeSeconds () const |
Retrieve the time in seconds spent since the last call to reset(). More... |
|
void | reset () |
Reset the stopwatch to 0. More... |
|
Additional Inherited Members | |
Protected Attributes inherited from pcl::StopWatch | |
std::chrono::time_point< std::chrono::steady_clock > | 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 |
| inline |
Definition at line 115 of file time.h.
References pcl::StopWatch::getTime().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_scope_time.html