From a4e96cfa32d8d050d049cef1849838b164fd827b Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 20 Dec 2024 12:56:49 +0100 Subject: [PATCH] Clean code --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 3420501..a783320 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -18,8 +18,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SetPosition,bbtk::AtomicBlackBox); //===== void SetPosition::Process() { -auto start = std::chrono::high_resolution_clock::now(); - // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value @@ -57,17 +55,16 @@ auto start = std::chrono::high_resolution_clock::now(); #if wxMAJOR_VERSION <= 2 bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent ); #else +auto start = std::chrono::high_resolution_clock::now(); bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent ); - #endif +auto stop = std::chrono::high_resolution_clock::now(); +auto duration = std::chrono::duration_cast(stop - start); +printf("EED SetPosition::Process time= %ld %s \n", duration.count() , bbGetFullName().c_str() ); + #endif vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); } // if bbGetInputPosition } // bbGetInputwxVtkBaseView } // Active - -auto stop = std::chrono::high_resolution_clock::now(); -auto duration = std::chrono::duration_cast(stop - start); -printf("EED SetPosition::Process time= %ld %s \n", duration.count() , bbGetFullName().c_str() ); - } //===== -- 2.47.1