5 #include <boost/chrono/duration.hpp>
6 #include <boost/chrono/time_point.hpp>
7 #include <boost/ratio/ratio.hpp>
8 #include <boost/ratio/ratio_fwd.hpp>
58 const Clock_t::duration lInterval = aT2 - aT1;
84 if (aStats.
size() == 0)
85 aStream <<
"no values recorded";
87 typedef boost::chrono::duration<float, boost::milli> MilliSec_t;
89 aStream <<
"min / mean / max = " << MilliSec_t(aStats.
min()).count() <<
" / "
90 << MilliSec_t(aStats.
mean()).count() <<
" / " << MilliSec_t(aStats.
max()).count() <<
" ms";
91 std::queue<TimeIntervalStats::Clock_t::duration> lLatestMeasurements = aStats.
getLatestMeasurements();
92 aStream <<
", last values ";
93 while (lLatestMeasurements.size() > 0) {
94 aStream << MilliSec_t(lLatestMeasurements.front()).count() << (lLatestMeasurements.size() > 1 ?
", " :
" ms");
95 lLatestMeasurements.pop();