Class to store a single stopwatch.
More...
#include <Stopwatch.h>
|
unsigned | cycles = 0 |
| Total number of cycles.
|
|
long long int | lap = 0 |
| Accumulated time for this lap, in nanoseconds.
|
|
long long int | lastLap = 0 |
| last lap
|
|
std::chrono::time_point< std::chrono::high_resolution_clock > | lastStart |
| Instant in time when Watch was started last time.
|
|
long long int | max = 0 |
| Slowest lap so far, in nanoseconds.
|
|
long long int | min = 0 |
| Fastest lap so far, in nanoseconds.
|
|
unsigned | running = 0 |
| count how many times Watch was started (+1) or stopped/paused (-1).
|
|
State | state = State::stopped |
| keep track of state
|
|
long long int | total = 0 |
| Total accumulated time, in nanoseconds.
|
|
|
class | Stopwatch |
| Allows access to internal data.
|
|
Class to store a single stopwatch.
Class Stopwatch contains a collection of them
◆ State
Enumerator |
---|
started | |
stopped | |
paused | |
◆ getLastCycle()
long long int PLMD::Stopwatch::Watch::getLastCycle |
( |
| ) |
|
|
inlinenoexcept |
returns the time for the last cycle
◆ getTotal()
long long int PLMD::Stopwatch::Watch::getTotal |
( |
| ) |
|
|
inlinenoexcept |
◆ 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.
◆ lastLap
long long int PLMD::Stopwatch::Watch::lastLap = 0 |
|
private |
◆ 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: