Browse Source

Restore default format state of cout after printing with std::fixed/setprecision

0.15
practicalswift 7 years ago
parent
commit
fd05132e5a
  1. 1
      src/bench/bench.cpp

1
src/bench/bench.cpp

@ -100,6 +100,7 @@ bool benchmark::State::KeepRunning()
int64_t averageCycles = (nowCycles-beginCycles)/count; int64_t averageCycles = (nowCycles-beginCycles)/count;
std::cout << std::fixed << std::setprecision(15) << name << "," << count << "," << minTime << "," << maxTime << "," << average << "," std::cout << std::fixed << std::setprecision(15) << name << "," << count << "," << minTime << "," << maxTime << "," << average << ","
<< minCycles << "," << maxCycles << "," << averageCycles << "\n"; << minCycles << "," << maxCycles << "," << averageCycles << "\n";
std::cout.copyfmt(std::ios(nullptr));
return false; return false;
} }

Loading…
Cancel
Save