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_ |
Detailed Description
Simple stopwatch.
Definition at line 62 of file time.h.
Constructor & Destructor Documentation
| pcl::StopWatch::StopWatch |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 66 of file time.h.
| virtual pcl::StopWatch::~StopWatch |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 71 of file time.h.
Member Function Documentation
| double pcl::StopWatch::getTime |
( |
| ) |
|
|
inline |
| double pcl::StopWatch::getTimeSeconds |
( |
| ) |
|
|
inline |
Retrieve the time in seconds spent since the last call to reset().
Definition at line 83 of file time.h.
References getTime().
| void pcl::StopWatch::reset |
( |
| ) |
|
|
inline |
Member Data Documentation
| boost::posix_time::ptime pcl::StopWatch::start_time_ |
|
protected |
The documentation for this class was generated from the following file:
- /tmp/buildd/pcl-1.7.2/common/include/pcl/common/time.h