From: eduardo.davila@creatis.insa-lyon.fr Date: Fri, 20 Dec 2024 12:18:29 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fa5b2b9845f19e2a82f3f0584928d3a576bc45b6;p=creaMaracasVisu.git Clean code --- diff --git a/bbtk/src/bbmaracasvisuViewerNV.cxx b/bbtk/src/bbmaracasvisuViewerNV.cxx index e797e84..11ae408 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.cxx +++ b/bbtk/src/bbmaracasvisuViewerNV.cxx @@ -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(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(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(stop1 - start1); +printf("EED bbwxMaracas_N_ViewersWidget::OnRefreshView time= %ld \n", duration1.count() , mbbViewerNV->bbGetFullName().c_str() ); } //-------------------------------------------------------------