class
#include <FAST/RuntimeMeasurement.hpp>
RuntimeMeasurement A class for runtime measurement.
Contents
Collect multiple runtimes over time, and calculates running average, running standard deviation, sum, max, min etc.
All measurements are in milliseconds
Base classes
- class Object
- Base class for all FAST objects.
Public types
- using pointer = std::shared_ptr<RuntimeMeasurement>
Constructors, destructors, conversion operators
- RuntimeMeasurement(std::string name, int warmupRounds = 0, int maximumSamples = -1)
- ~RuntimeMeasurement() defaulted override
Public functions
- void addSample(double runtime)
- auto getSum() const -> double
- auto getAverage() const -> double
- auto getSamples() const -> unsigned int
- auto getMax() const -> double
- auto getMin() const -> double
- auto getStdDeviation() const -> double
- auto print() const -> std::string
- void reset()