#include <cpPlugins/ProcessObject.h>
#include <cpPlugins/ParametersQtDialog.h>
#include <itkProcessObject.h>
+#include <chrono>
// -------------------------------------------------------------------------
cpPlugins::Parameters* cpPlugins::ProcessObject::
{
if( this->m_LastExecutionTime < this->GetMTime( ) || need_to_update )
{
+ std::cout
+ << "cpPlugins: Updating \""
+ << this->GetClassName( ) << ":" << this->GetClassCategory( )
+ << "\"... ";
+ std::cout.flush( );
+ long start =
+ std::chrono::duration_cast< std::chrono::milliseconds >(
+ std::chrono::system_clock::now( ).time_since_epoch( )
+ ).count( );
r = this->_GenerateData( );
+ long end =
+ std::chrono::duration_cast< std::chrono::milliseconds >(
+ std::chrono::system_clock::now( ).time_since_epoch( )
+ ).count( );
this->m_LastExecutionTime = this->GetMTime( );
+ std::cout << "done in " << ( ( end - start ) / 1000 ) << "ms!" << std::endl;
} // fi