Class to store a single stopwatch.
More...
#include <Stopwatch.h>
Class to store a single stopwatch.
Class Stopwatch contains a collection of them
◆ State
| Enumerator |
|---|
| started | |
| stopped | |
| paused | |
◆ pause()
◆ start()
◆ startPause()
returns a start-pause handler
◆ startStop()
returns a start-stop handler
◆ stop()
◆ Stopwatch
Allows access to internal data.
◆ cycles
| unsigned PLMD::Stopwatch::Watch::cycles = 0 |
|
private |
◆ lap
| long long int PLMD::Stopwatch::Watch::lap = 0 |
|
private |
Accumulated time for this lap, in nanoseconds.
◆ lastStart
| std::chrono::time_point<std::chrono::high_resolution_clock> PLMD::Stopwatch::Watch::lastStart |
|
private |
Instant in time when Watch was started last time.
◆ max
| long long int PLMD::Stopwatch::Watch::max = 0 |
|
private |
Slowest lap so far, in nanoseconds.
◆ min
| long long int PLMD::Stopwatch::Watch::min = 0 |
|
private |
Fastest lap so far, in nanoseconds.
◆ running
| unsigned PLMD::Stopwatch::Watch::running = 0 |
|
private |
count how many times Watch was started (+1) or stopped/paused (-1).
◆ state
◆ total
| long long int PLMD::Stopwatch::Watch::total = 0 |
|
private |
Total accumulated time, in nanoseconds.
The documentation for this class was generated from the following file: