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

index f1578ae..a89f6a9 100644 (file)
@@ -53,7 +53,13 @@ void SetPosition::Process()
        #if wxMAJOR_VERSION <= 2
                                bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent );
        #else
-                               bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
+auto start1 = std::chrono::high_resolution_clock::now();
+                bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
+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  \n", duration1.count() , this->bbGetFullName().c_str() );
+
+                
        #endif
                 vtkmprbasedata->SetFixAxis2D( tmpFixAxis );
                        } // if bbGetInputPosition
index 9f2bb50..51c2edf 100644 (file)
@@ -90,11 +90,11 @@ void bbwxMaracas_N_ViewersWidget::OnRefreshView(wxCommandEvent & event)
 //-------------------------------------------------------------
 void bbwxMaracas_N_ViewersWidget::OnRefreshView2(wxCommandEvent & event)
 {
-auto start1 = std::chrono::high_resolution_clock::now();
+// 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() );
+// 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() );
 }
 
 //-------------------------------------------------------------