Skip to content

Commit

Permalink
Improve parallel profilesets progressbar slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
navv1234 committed Aug 16, 2018
1 parent 03e4252 commit 8390452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/sim/sc_profileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ std::string format_time( double seconds, bool milliseconds = true )
// For milliseconds, just use a quick format
else if ( seconds < 1 )
{
s << static_cast<int>( 1000 * seconds ) << "ms";
s << util::round( 1000.0 * seconds, 3 ) << "ms";
}
// Otherwise, do the whole thing
else
Expand Down Expand Up @@ -817,7 +817,7 @@ void profilesets_t::output_progressbar( const sim_t* parent ) const
auto time_left = ( work_left / m_max_workers ) * average_per_sim;

// Average time per done simulation
s << " avg=" << format_time( average_per_sim );
s << " avg=" << format_time( average_per_sim / as<double>( m_max_workers ) );

// Elapsed time
s << " done=" << format_time( elapsed, false );
Expand Down

0 comments on commit 8390452

Please sign in to comment.