Class TimeData

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.

ecl::Duration stdDev() const

Return the standard deviation of the elements currently stored.

Returns:

Duration : standard deviation.

ecl::Duration variance() const

Return the variance of the elements currently stored.

Returns:

Duration : variance.