#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
+#include <boost/accumulators/statistics/min.hpp>
+#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <iostream>
using namespace boost::accumulators;
- accumulator_set<double, stats<tag::mean>> acc;
+ accumulator_set<double, stats<tag::mean, tag::min, tag::max>> acc;
for (uint32_t n = 0; n < count.value(); ++n)
{
}
std::cout << "--------" << std::endl;
+ std::cout << "Min: " << min(acc) << "ms" << std::endl;
+ std::cout << "Max: " << max(acc) << "ms" << std::endl;
std::cout << "Mean: " << mean(acc) << "ms" << std::endl;
return 0;