]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/ProcessObject.cxx
...
[cpPlugins.git] / lib / cpPlugins / ProcessObject.cxx
index 02beb8849b774a75e8370dad59a2fe22f4c3da57..eecfd8b74e9548c89380ee9a61d03a81ac6d8b17 100644 (file)
@@ -250,16 +250,17 @@ Update( )
 
     } // fi
 
-    this->m_LastExecutionSpan = cpPlugins_CHRONO;
+    auto t_start = cpPlugins_CHRONO;
     this->_GenerateData( );
-    this->m_LastExecutionSpan = cpPlugins_CHRONO - this->m_LastExecutionSpan;
+    auto t_end = cpPlugins_CHRONO;
+    this->m_LastExecutionSpan = long( t_end - t_start );
     this->m_LastExecutionTime = this->GetMTime( );
 
     if( this->m_PrintExecution && this->m_PrintExecutionStream != NULL )
     {
       *( this->m_PrintExecutionStream )
         << "done in "
-        << this->m_LastExecutionSpan
+        << double( this->m_LastExecutionSpan ) / double( 1000 )
         << " ms." << std::endl;
 
     } // fi