7 #ifndef MANAK_PMEASURE_HPP_INCLUDED
8 #define MANAK_PMEASURE_HPP_INCLUDED
36 : min(min), max(max), avg(avg) {}
39 int Compare(
const double value,
const double tolerance)
41 if(
avg - value > tolerance)
43 if(value -
avg > tolerance)
68 #endif // MANAK_PMEASURE_HPP_INCLUDED
int Compare(const double value, const double tolerance)
Compare the average with given value taking into consideration the tolerance.
std::ostream & operator<<(std::ostream &stream, const PMeasure &pm)
Stores the timing information of any run.
PMeasure()
Create empty object For STL library use.
PMeasure(double min, double max, double avg)
Generate PMeasure object with given time information.