From: ouv Date: Tue, 15 Nov 2005 09:26:44 +0000 (+0000) Subject: Changed format of output time. X-Git-Tag: BR-D5-38-2003_D2005-24-11~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6653e9f129df684d0d82d82a74d76f4e4d5904e;p=modules%2Fvisu.git Changed format of output time. --- 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 ); } } }