From 60626110160545ccc8dc93410f9b958fc0efe453 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 20 Dec 2024 15:04:04 +0100 Subject: [PATCH] Clean code --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 1078d3a..85d9a7a 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -16,6 +16,7 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SetPosition,bbtk::AtomicBlackBox); //===== void SetPosition::Process() { +auto start1 = 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 @@ -34,13 +35,9 @@ void SetPosition::Process() vtkMPRBaseData* vtkmprbasedata = (vtkMPRBaseData*) (bbGetInputwxVtkBaseView()->GetVtkBaseData()); if (bbGetInputPoint().size()==3) { -auto start1 = std::chrono::high_resolution_clock::now(); vtkmprbasedata->SetX( bbGetInputPoint()[0],false ); vtkmprbasedata->SetY( bbGetInputPoint()[1],false ); vtkmprbasedata->SetZ( bbGetInputPoint()[2],true ); -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() ); bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( ); vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() ); int codeEvent; @@ -63,6 +60,9 @@ printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGet } // if bbGetInputPosition } // bbGetInputwxVtkBaseView } // Active +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() ); } //===== -- 2.47.1