8#ifndef HPP_ALIB_TIME_STOPWATCH
9#define HPP_ALIB_TIME_STOPWATCH 1
13namespace alib {
namespace time {
78 sum= Ticks::Duration::FromNanoseconds(0);
80 min= (std::numeric_limits<Ticks::Duration>::max)();
81 max= (std::numeric_limits<Ticks::Duration>::min)();
100 if(
min > sample )
min= sample;
101 if(
max < sample )
max= sample;
int cntSamples
The number of samples performed.
Ticks::Duration GetCumulated() const
Ticks::Duration GetAverage() const
Ticks::Duration sum
The sum of the samples times.
Ticks::Duration GetMaximum() const
Ticks::Duration min
The minimum duration probed.
Ticks::Duration max
The maximum duration probed.
StopWatch()
Creates a started StopWatch.
Ticks::Duration GetMinimum() const
Ticks startTime
The current start time.