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

This commit is contained in:
practicalswift 2017-07-31 20:15:48 +02:00
parent 70888a39c4
commit fd05132e5a

View file

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