29 #ifndef LBANN_UTILS_ACCUMULATING_TIMER_INCLUDED 30 #define LBANN_UTILS_ACCUMULATING_TIMER_INCLUDED 51 void start() noexcept;
62 double stop() noexcept;
67 double check()
const noexcept;
72 void reset() noexcept;
82 size_t samples()
const noexcept;
85 double mean()
const noexcept;
88 double stddev()
const noexcept;
91 double min()
const noexcept;
94 double max()
const noexcept;
170 #endif // LBANN_UTILS_ACCUMULATING_TIMER_INCLUDED void reset() noexcept
All values return to their defaults.
Timer that accumulates mean and variance of timer durations as it goes.
void reset_statistics() noexcept
Clear the running history of durations.
void reset() noexcept
Clear any internal state in the timer.
double mean() const noexcept
Running mean of observed samples.
double total_time() const noexcept
The total time observed by this timer.
double max() const noexcept
The largest observed duration.
double check() const noexcept
Get the current elapsed time (seconds) without stopping.
double stop() noexcept
Get the elapsed time for this duration in seconds.
double min() const noexcept
Get the minimum observed value.
void start() noexcept
Start counting time for this duration sample.
bool running() const noexcept
Check if the timer is running.
double min() const noexcept
The smallest observed duration.
size_t samples() const noexcept
Number of observed samples.
double check() const noexcept
Get the current elapsed time in this duration (in seconds) without stopping the timer.
Accumulate mean, stddev, min, and max over a streaming data set.
double stddev() const noexcept
Running (unbiased) sample standard deviation of the observed samples.
void insert(double val) noexcept
Add a new value to the data set.
double stddev() const noexcept
The standard deviation of observed durations.
double mean() const noexcept
The mean observed duration.
bool running() const noexcept
Determine whether there is an active duration sample running.
size_t samples() const noexcept
The number of durations observed in this timer.
double total() const noexcept
Running sum of observed samples.
double max() const noexcept
Get the minimum observed value.
void reset() noexcept
Reset this duration without caching it in the running statistics.
An exceedingly simple duration calculator.
double stop() noexcept
Get the total elapsed time in seconds.
void start() noexcept
Start counting time.