]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Changed format of output time.
authorouv <ouv@opencascade.com>
Tue, 15 Nov 2005 09:26:44 +0000 (09:26 +0000)
committerouv <ouv@opencascade.com>
Tue, 15 Nov 2005 09:26:44 +0000 (09:26 +0000)
src/VISUGUI/VisuGUI.cxx

index 121e896e5bd06fc77054a1fa71fd4a3a264148af..9e5841c5f7caafa6b568f2903dfe1d97ac631e23 100644 (file)
@@ -37,6 +37,7 @@
 #include <qptrlist.h>
 #include <qptrvector.h>
 #include <qcolordialog.h>
+#include <qdatetime.h>
 
 // VTK Includes
 #include <vtkRenderer.h>
@@ -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 );
     }
   }
 }