From: eduardo.davila@creatis.insa-lyon.fr Date: Fri, 20 Dec 2024 12:45:31 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9b70d0cfd0901493a3ac4fbde5cd18ea28446671;p=creaMaracasVisu.git Clean code --- diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index f1578ae..a89f6a9 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -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(stop1 - start1); +printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGetFullName().c_str() ); + + #endif vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); } // if bbGetInputPosition diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index 9f2bb50..51c2edf 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -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(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(stop1 - start1); +// printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld \n", duration1.count() , mbbViewerNV->bbGetFullName().c_str() ); } //-------------------------------------------------------------