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 committed by Jack Grigg
parent 95b6695ba2
commit 550cb05f94
1 changed files with 1 additions and 0 deletions

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;
}