]> Creatis software - creaMaracasVisu.git/commitdiff
Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Dec 2024 12:18:29 +0000 (13:18 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Dec 2024 12:18:29 +0000 (13:18 +0100)
bbtk/src/bbmaracasvisuViewerNV.cxx

index e797e844dfabdf17137e33907f1f48b8f10328a9..11ae408a2544a5fa6ab53bc6a913477a427d9132 100644 (file)
@@ -75,11 +75,7 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
         //ED2024-11-01
         bool ok=true;
         if  (mbbViewerNV->bbGetInputReactivityType()==0) { ok=false; }
-auto start1 = std::chrono::high_resolution_clock::now();
         mbbViewerNV->bbSignalOutputModification(std::string("Point"),ok);
-auto stop1       = std::chrono::high_resolution_clock::now();
-auto duration1   = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
-printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld  \n", duration1.count() , mbbViewerNV->bbGetFullName().c_str() );
 
         
         
@@ -90,18 +86,17 @@ printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld  \n", duration1
         
        } // if X Y Z
 
-auto start2 = std::chrono::high_resolution_clock::now();
        wxMaracas_N_ViewersWidget::OnRefreshView(event);
-auto stop2       = std::chrono::high_resolution_clock::now();
-auto duration2   = std::chrono::duration_cast<std::chrono::microseconds>(stop2 - start2);
-printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld  \n", duration2.count() , mbbViewerNV->bbGetFullName().c_str() );
-
 }
 
 //-------------------------------------------------------------
 void bbwxMaracas_N_ViewersWidget::OnRefreshView2(wxCommandEvent & event)
 {
+auto start1 = std::chrono::high_resolution_clock::now();
     wxMaracas_N_ViewersWidget::OnRefreshView(event);
+auto stop1       = std::chrono::high_resolution_clock::now();
+auto duration1   = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
+printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld  \n", duration1.count() , mbbViewerNV->bbGetFullName().c_str() );
 }
 
 //-------------------------------------------------------------