Skip to content

Commit

Permalink
Log directory reading time
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Oct 9, 2018
1 parent 03d95e1 commit 3df45d6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,10 @@ void MainWindow::readingFinished()
logInfo() << endl;

idleDisplay();
_ui->statusBar->showMessage( tr( "Finished. Elapsed time: %1")
.arg( formatTime( _stopWatch.elapsed() ) ) );

QString elapsedTime = formatTime( _stopWatch.elapsed() );
_ui->statusBar->showMessage( tr( "Finished. Elapsed time: %1").arg( elapsedTime ) );
logInfo() << "Reading finished after " << elapsedTime << endl;

// Debug::dumpModelTree( _dirTreeModel, QModelIndex(), "" );
}
Expand All @@ -507,8 +509,9 @@ void MainWindow::readingAborted()
logInfo() << endl;

idleDisplay();
_ui->statusBar->showMessage( tr( "Aborted. Elapsed time: %1")
.arg( formatTime( _stopWatch.elapsed() ) ) );
QString elapsedTime = formatTime( _stopWatch.elapsed() );
_ui->statusBar->showMessage( tr( "Aborted. Elapsed time: %1").arg( elapsedTime ) );
logInfo() << "Reading aborted after " << elapsedTime << endl;
}


Expand Down

0 comments on commit 3df45d6

Please sign in to comment.