X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=senf%2FUtils%2FStatisticAccumulator.cc;fp=senf%2FUtils%2FStatisticAccumulator.cc;h=95810caf3bd6d5edbe00ce505b1ab7d2e9605930;hp=0a146f3fd09d1ca0e40c63cabd82960f41cbad61;hb=55b4c5a3afcf821031cef2ca7089fbdfd77d513a;hpb=b2fff1b50e0010fdad28cb638987cbf88032e30e diff --git a/senf/Utils/StatisticAccumulator.cc b/senf/Utils/StatisticAccumulator.cc index 0a146f3..95810ca 100644 --- a/senf/Utils/StatisticAccumulator.cc +++ b/senf/Utils/StatisticAccumulator.cc @@ -23,18 +23,27 @@ // All Rights Reserved. // // Contributor(s): -// Stefan Bund +// Mathias Kretschmer +// Jens Moedeker #include "StatisticAccumulator.hh" +// Custom includes + +#define prefix_ +//-///////////////////////////////////////////////////////////////////////////////////////////////// + std::ostream & senf::operator<<(std::ostream & os, senf::StatisticsData const & _data) - { - format::IndentHelper indent; - os << indent << "StatisticData:" << std::endl; - os << indent << "min: " << _data.min << std::endl; - os << indent << "avg: " << _data.avg << std::endl; - os << indent << "max: " << _data.max << std::endl; - os << indent << "stddev: " << _data.stddev << std::endl; - os << indent << "count: " << _data.count << std::endl; - return os; - }; +{ + format::IndentHelper indent; + os << indent << "StatisticData:" << std::endl + << indent << "min: " << _data.min << std::endl + << indent << "avg: " << _data.avg << std::endl + << indent << "max: " << _data.max << std::endl + << indent << "stddev: " << _data.stddev << std::endl + << indent << "count: " << _data.count << std::endl; + return os; +}; + +//-///////////////////////////////////////////////////////////////////////////////////////////////// +#undef prefix_