mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Small improvement suggested by @pshriwise
This commit is contained in:
parent
20fa6fa5da
commit
2ad4726c23
1 changed files with 1 additions and 3 deletions
|
|
@ -417,9 +417,7 @@ void print_batch_keff()
|
|||
|
||||
void show_time(const char* label, double secs, int indent_level=0)
|
||||
{
|
||||
for (int i = 0; i < indent_level; ++i) {
|
||||
std::cout << " ";
|
||||
}
|
||||
std::cout << std::string(2*indent_level, ' ');
|
||||
int width = 33 - indent_level*2;
|
||||
std::cout << " " << std::setw(width) << std::left << label << " = "
|
||||
<< std::setw(10) << std::right << secs << " seconds\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue