]> 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 f1578ae0b9042e258fa02a3ac5e48d41682609c3..a89f6a9fa962663c28a838f40f6b1543f1a07520 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 9f2bb505d6856b6820b89f0547caea06e15df4e5..51c2edf79121dd7da49f60192a377bb3e8fcea78 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() );
 }
 
 //-------------------------------------------------------------