mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
move flushes in display_statistics (#6472)
This commit is contained in:
parent
a96b7d243a
commit
54a8d65617
|
@ -44,12 +44,12 @@ static void display_statistics() {
|
||||||
lock_guard lock(*display_stats_mux);
|
lock_guard lock(*display_stats_mux);
|
||||||
clock_t end_time = clock();
|
clock_t end_time = clock();
|
||||||
if (g_cmd_context && g_display_statistics) {
|
if (g_cmd_context && g_display_statistics) {
|
||||||
std::cout.flush();
|
|
||||||
std::cerr.flush();
|
|
||||||
if (g_cmd_context) {
|
if (g_cmd_context) {
|
||||||
g_cmd_context->set_regular_stream("stdout");
|
g_cmd_context->set_regular_stream("stdout");
|
||||||
g_cmd_context->display_statistics(true, ((static_cast<double>(end_time) - static_cast<double>(g_start_time)) / CLOCKS_PER_SEC));
|
g_cmd_context->display_statistics(true, ((static_cast<double>(end_time) - static_cast<double>(g_start_time)) / CLOCKS_PER_SEC));
|
||||||
}
|
}
|
||||||
|
std::cout.flush();
|
||||||
|
std::cerr.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue