Class TimeData
Defined in File time_data.hpp
Class Documentation
-
class TimeData
Device for conveniently storing and analysing benchmarking times.
This serves as both a container and interface for generating statistics on a sequence of timings.
Public Functions
-
inline void push_back(const ecl::Duration &duration)
Append a new timing measurement to the sequence.
- Parameters
duration – : measurement to be added.
-
inline void clear()
Reset the container (i.e. clear it).
-
ecl::Duration average() const
Return the average of the elements currently stored.
- Returns
Duration : average.
-
inline void push_back(const ecl::Duration &duration)