Skip to content

Commit

Permalink
added explicit echo timer in panther master to control screen output
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Nov 29, 2024
1 parent c9b7675 commit 84f3b1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/run_managers/yamr/RunManagerPanther.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1290,9 +1290,10 @@ void RunManagerPanther::echo()
{
if (!should_echo)
return;
if (chrono::duration_cast<std::chrono::seconds> (chrono::system_clock::now() - last_echo_time).count() < SECONDS_BETWEEN_ECHOS)
std::chrono::system_clock::time_point now = chrono::system_clock::now();
if (chrono::duration_cast<std::chrono::seconds> ( now- last_echo_time).count() < SECONDS_BETWEEN_ECHOS)
return;
last_echo_time = std::chrono::system_clock::now();
last_echo_time = now;
map<string, int> stats_map = get_agent_stats();
cout << get_time_string_short() << " mn:" << setw(5) << setprecision(2) << left << get_global_runtime_minute() << " runs("
<< "C" << setw(5) << left << model_runs_done
Expand Down

0 comments on commit 84f3b1b

Please sign in to comment.