From c6653e9f129df684d0d82d82a74d76f4e4d5904e Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 15 Nov 2005 09:26:44 +0000 Subject: [PATCH] Changed format of output time. --- src/VISUGUI/VisuGUI.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 121e896e..9e5841c5 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -37,6 +37,7 @@ #include #include #include +#include // VTK Includes #include @@ -204,10 +205,16 @@ OnImportFromFile() tr("ERR_ERROR_IN_THE_FILE"), tr("BUT_OK")); }else{ + INFOS( "VisuGUI::OnImportFromFile() : File importing done in " << + vtkTimerLog::GetCPUTime() - initialTime << " seconds" ); + UpdateObjBrowser(this); - application()->putInfo(aFileInfo.filePath() + tr("INF_DONE") + " in " + - QString::number( vtkTimerLog::GetCPUTime() - initialTime ) + - " seconds", -1 ); + + QTime aTime; + int mSecs = ( int )( 1000 * ( vtkTimerLog::GetCPUTime() - initialTime ) ); + aTime = aTime.addMSecs( mSecs ); + application()->putInfo( aFileInfo.filePath() + tr( "INF_DONE" ) + " in " + + aTime.toString( "m:ss.zzz" ), -1 ); } } } -- 2.39.2