aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-31 20:15:48 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-07-31 20:15:48 +0200
commitfd05132e5a5f34046536ef62ba8d130fa3b00c65 (patch)
tree6be3dba098e6a87f6e17433cd1ad8a5e06c692e9 /src/bench
parent70888a39c43a8e680be6b1baecbc9f7c9b63b183 (diff)
downloadbitcoin-fd05132e5a5f34046536ef62ba8d130fa3b00c65.tar.xz
Restore default format state of cout after printing with std::fixed/setprecision
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/bench.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp
index 33631d2d15..f424572913 100644
--- a/src/bench/bench.cpp
+++ b/src/bench/bench.cpp
@@ -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;
}