From b4a5bdbfd4003693f0d908a8e4a28f303389a1d3 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 20 Dec 2024 12:39:35 +0100 Subject: [PATCH] Clean code --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 2121a2d..3420501 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -1,9 +1,11 @@ //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== + +#include + #include "bbcreaMaracasVisuSetPosition.h" #include "bbcreaMaracasVisuPackage.h" - #include namespace bbcreaMaracasVisu @@ -16,6 +18,7 @@ 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' @@ -60,6 +63,11 @@ void SetPosition::Process() } // 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