Simple stopwatch. More...
#include <pcl/common/time.h>

Public Member Functions | |
| StopWatch () | |
| Constructor. | |
| virtual | ~StopWatch () |
| Destructor. | |
| 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. | |
Protected Attributes | |
| boost::posix_time::ptime | start_time_ |
Simple stopwatch.
Definition at line 62 of file time.h.
| virtual pcl::StopWatch::~StopWatch | ( | ) | [inline, virtual] |
| double pcl::StopWatch::getTime | ( | ) | [inline] |
Retrieve the time in milliseconds spent since the last call to reset().
Definition at line 75 of file time.h.
References start_time_.
Referenced by getTimeSeconds(), and pcl::ScopeTime::~ScopeTime().
| double pcl::StopWatch::getTimeSeconds | ( | ) | [inline] |
| void pcl::StopWatch::reset | ( | ) | [inline] |
boost::posix_time::ptime pcl::StopWatch::start_time_ [protected] |
Definition at line 96 of file time.h.
Referenced by getTime(), reset(), and pcl::ScopeTime::ScopeTime().