Skip to content

Commit

Permalink
move flushes in display_statistics (#6472)
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhou7 committed Dec 2, 2022
1 parent a96b7d2 commit 54a8d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell/smtlib_frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ static void display_statistics() {
lock_guard lock(*display_stats_mux);
clock_t end_time = clock();
if (g_cmd_context && g_display_statistics) {
std::cout.flush();
std::cerr.flush();
if (g_cmd_context) {
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));
}
std::cout.flush();
std::cerr.flush();
}
}

Expand Down

0 comments on commit 54a8d65

Please sign in to comment.