| 47 | } |
| 48 | |
| 49 | static void print_timer(std::ostream& os, |
| 50 | std::string const& k, |
| 51 | AccumulatingTimer const& t, |
| 52 | unsigned const width, |
| 53 | unsigned const indent) |
| 54 | { |
| 55 | // clang-format off |
| 56 | auto const key_width = width - 65U - indent; |
| 57 | os << std::string(indent, ' ') |
| 58 | << std::setw(key_width) << std::left |
| 59 | << truncate_to_width(k, key_width) << " | " |
| 60 | << std::setw(8) << std::right << t.samples() << " | " |
| 61 | << std::scientific << std::setprecision(4) |
| 62 | << std::setw(10) << std::right << t.total_time() << " | " |
| 63 | << std::setw(10) << std::right << t.mean() << " | " |
| 64 | << std::setw(10) << std::right << t.min() << " | " |
| 65 | << std::setw(10) << std::right << t.max() << " |\n"; |
| 66 | // clang-format on |
| 67 | } |
| 68 | |
| 69 | static unsigned output_width(std::ostream& os) |
| 70 | { |
no test coverage detected