mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Merge #10963: [bench] Restore format state of cout after printing with std::fixed/setprecision
fd05132e5
Restore default format state of cout after printing with std::fixed/setprecision (practicalswift)
Pull request description:
Restore default format state of `std::cout` after printing with `std::fixed`/`std::setprecision`.
Tree-SHA512: 445b5b42aff58e2350939e8febc9b4a6fff478616abfe831aec42bee906cefac7a153c93d506407fb213d04dae9c7afbb5bfd344be63ca0f40ae39b331a4144f
This commit is contained in:
commit
ecd21357f1
@ -100,6 +100,7 @@ bool benchmark::State::KeepRunning()
|
|||||||
int64_t averageCycles = (nowCycles-beginCycles)/count;
|
int64_t averageCycles = (nowCycles-beginCycles)/count;
|
||||||
std::cout << std::fixed << std::setprecision(15) << name << "," << count << "," << minTime << "," << maxTime << "," << average << ","
|
std::cout << std::fixed << std::setprecision(15) << name << "," << count << "," << minTime << "," << maxTime << "," << average << ","
|
||||||
<< minCycles << "," << maxCycles << "," << averageCycles << "\n";
|
<< minCycles << "," << maxCycles << "," << averageCycles << "\n";
|
||||||
|
std::cout.copyfmt(std::ios(nullptr));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user