Simple stopwatch.
More...
#include <pcl/common/time.h>
|
| | StopWatch ()=default |
| | Constructor.
|
| double | getTime () const |
| | Retrieve the time in milliseconds spent since the last call to reset().
|
| double | getTimeSeconds () const |
| | Retrieve the time in seconds spent since the last call to reset().
|
| void | reset () |
| | Reset the stopwatch to 0.
|
|
| std::chrono::time_point< std::chrono::steady_clock > | start_time_ = std::chrono::steady_clock::now() |
Simple stopwatch.
Definition at line 58 of file time.h.
◆ StopWatch()
| pcl::StopWatch::StopWatch |
( |
| ) |
|
|
default |
◆ getTime()
| double pcl::StopWatch::getTime |
( |
| ) |
const |
|
inline |
◆ getTimeSeconds()
| double pcl::StopWatch::getTimeSeconds |
( |
| ) |
const |
|
inline |
◆ reset()
| void pcl::StopWatch::reset |
( |
| ) |
|
|
inline |
◆ start_time_
| std::chrono::time_point<std::chrono::steady_clock> pcl::StopWatch::start_time_ = std::chrono::steady_clock::now() |
|
protected |
The documentation for this class was generated from the following file: