mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 14:40:45 +02:00
Restore default format state of cout after printing with std::fixed/setprecision
This commit is contained in:
parent
70888a39c4
commit
fd05132e5a
@ -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