![]() |
Tesseract 0.28.4
|
A simple stopwatch class leveraging chrono high resolution clock. More...
#include <stopwatch.h>
Public Member Functions | |
| void | start () |
| Start the timer. | |
| void | stop () |
| Stop the timer. | |
| double | elapsedMilliseconds () const |
| Get the elapsed time in milliseconds. | |
| double | elapsedSeconds () const |
| Get the elapsed time in seconds. | |
A simple stopwatch class leveraging chrono high resolution clock.
| double tesseract::common::Stopwatch::elapsedMilliseconds | ( | ) | const |
Get the elapsed time in milliseconds.
If timer is actively running it will use Clock::now() as the end time
| double tesseract::common::Stopwatch::elapsedSeconds | ( | ) | const |
Get the elapsed time in seconds.
If timer is actively running it will use Clock::now() as the end time