22 for (
int digits = std::log10(c); digits > 0; digits -= 3) {
23 blocks[n++] = c % 1000;
29 const auto lastFill = out.fill(
'0');
32 out <<
'\'' << std::setw(3) << blocks[--
n];
35 return out <<
" Cycles";
A low-overhead timer for benchmarking small regions of code.
std::ostream & operator<<(std::ostream &out, const ActionPtr &action)
Convenience: dereferences the ActionPtr to Action.