]> Creatis software - bbtk.git/commitdiff
Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Dec 2024 10:48:09 +0000 (11:48 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Dec 2024 10:48:09 +0000 (11:48 +0100)
kernel/src/bbtkBlackBox.cxx

index 5de0c1fd56be7839c09e32ed2edcf75aa130688c..8eeb9a3126f3b7ffef941b0a829ec325621f8694 100644 (file)
@@ -796,17 +796,23 @@ printf("EED BlackBox::bbRecursiveExecute bbProcess time= %ld  %s \n", duration.c
                         <<std::endl);
       } // if
 
+      
+      
     // Shows the window if the black box has one
     this->bbShowWindow(); 
 
-         
+      
+auto start2 = std::chrono::high_resolution_clock::now();
     bbtkBlackBoxDebugMessage("process",3,
             "<= BlackBox::bbRecursiveExecute()"
             <<std::endl);
-
     bbSetExecuting(false);
     bbGlobalSetSomeBoxExecuting(wasExecuting);
+auto stop2       = std::chrono::high_resolution_clock::now();
+auto duration2   = std::chrono::duration_cast<std::chrono::microseconds>(stop2 - start2);
+printf("EED BlackBox::bbRecursiveExecute bbProcess2 time= %ld  %s \n", duration2.count() , bbGetFullName().c_str() );
 
+      
     return;
   }
   //=========================================================================