]> Creatis software - creaMaracasVisu.git/commitdiff
#3570 refresh optimization vtkBaseView ColorLayer
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 3 Jan 2025 12:44:11 +0000 (13:44 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 3 Jan 2025 12:44:11 +0000 (13:44 +0100)
bbtk/src/bbcreaMaracasVisuSetPosition.cxx

index 7d543f88af19fd29f6258e548a358a0a88945e68..2a3773529fb0bcf33369a7cf879f2f5d43b0fa55 100644 (file)
@@ -30,7 +30,7 @@ void SetPosition::Process()
 //      (the one provided in the attribute 'type' of the tag 'input')
        if (bbGetInputActive()==true)
        { 
-//auto start1 = std::chrono::high_resolution_clock::now();
+auto start1 = std::chrono::high_resolution_clock::now();
                if (bbGetInputwxVtkBaseView()!=NULL)
                {
                        vtkMPRBaseData* vtkmprbasedata = (vtkMPRBaseData*) (bbGetInputwxVtkBaseView()->GetVtkBaseData());
@@ -58,9 +58,9 @@ void SetPosition::Process()
                 vtkmprbasedata->SetFixAxis2D( tmpFixAxis );
                        } // if bbGetInputPosition
                } // bbGetInputwxVtkBaseView    
-//auto stop1       = std::chrono::high_resolution_clock::now();
-//auto duration1   = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
-//printf("EED SetPosition::Process time= %ld  %s \n", duration1.count() , this->bbGetFullName().c_str() );
+auto stop1       = std::chrono::high_resolution_clock::now();
+auto duration1   = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
+printf("EED SetPosition::Process time= %ld  %s \n", duration1.count() , this->bbGetFullName().c_str() );
        } // Active
     
 }