JayBeams  0.1
Another project to have fun coding.
histogram_summary.cpp
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 std::ostream& jb::operator<<(std::ostream& os, histogram_summary const& x) {
6  if (x.nsamples == 0) {
7  return os << "no samples recorded";
8  }
9  return os << "nsamples=" << x.nsamples << ", min=" << x.min
10  << ", p25=" << x.p25 << ", p50=" << x.p50 << ", p75=" << x.p75
11  << ", p90=" << x.p90 << ", p99=" << x.p99 << ", max=" << x.max;
12 }
std::ostream & operator<<(std::ostream &os, as_hhmmssu const &x)
Format as_hhmmssu into an iostream.
Definition: as_hhmmss.cpp:8
A simple class to capture summary information about a histogram.