Skip to content

Commit fd05132

Browse files
Restore default format state of cout after printing with std::fixed/setprecision
1 parent 70888a3 commit fd05132

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bench/bench.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ bool benchmark::State::KeepRunning()
100100
int64_t averageCycles = (nowCycles-beginCycles)/count;
101101
std::cout << std::fixed << std::setprecision(15) << name << "," << count << "," << minTime << "," << maxTime << "," << average << ","
102102
<< minCycles << "," << maxCycles << "," << averageCycles << "\n";
103+
std::cout.copyfmt(std::ios(nullptr));
103104

104105
return false;
105106
}

0 commit comments

Comments
 (0)