Restore default format state of cout after printing with std::fixed/setprecision
This commit is contained in:
parent
70888a39c4
commit
fd05132e5a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue