#include <StopWatchService.h>
|
| | StopWatchService (bool run=true) |
| | constructor for timer. shutdown implies the start or not start of the timer
|
| |
| void | reset () |
| | reset timer if started or start timer if it was not started
|
| |
| void | stop () |
| | possibility to stop timer
|
| |
| std::chrono::nanoseconds | elapsed () const |
| | Returns the elapsed time of the timer.
|
| |
◆ StopWatchService()
| lintel::StopWatchService::StopWatchService |
( |
bool |
run = true | ) |
|
|
explicit |
constructor for timer. shutdown implies the start or not start of the timer
- Parameters
-
| run | variable for choose to start or not start the timer |
- Author
- Example User
- Date
- 2019-01-30
◆ elapsed()
| std::chrono::nanoseconds lintel::StopWatchService::elapsed |
( |
| ) |
const |
Returns the elapsed time of the timer.
- Returns
- elapsed time as nanoseconds
◆ reset()
| void lintel::StopWatchService::reset |
( |
| ) |
|
reset timer if started or start timer if it was not started
- Author
- Example User
- Date
- 2019-01-30
◆ stop()
| void lintel::StopWatchService::stop |
( |
| ) |
|
possibility to stop timer
- Author
- Example User
- Date
- 2019-01-30
◆ operator<<
Print the elapsed time to an output stream.
The documentation for this class was generated from the following file: