Restore default format state of cout after printing with std::fixed/setprecision

pull/10963/head
practicalswift 7 years ago
parent 70888a39c4
commit fd05132e5a

@ -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…
Cancel
Save