From f18c9c1b32a3a58854168a88249e5959170d5568 Mon Sep 17 00:00:00 2001 From: "William R. Otte" Date: Sat, 26 Nov 2011 05:16:25 +0000 Subject: --- DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp b/DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp index 3c765b61416..037b3a818cd 100644 --- a/DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp +++ b/DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp @@ -663,7 +663,23 @@ Plan_Launcher_Base_Impl< Manager, AppManager, Application> try { + std::string filename = "Teardown"; + filename += ".timing"; + outfile_.open (filename.c_str ()); + + ACE_High_Res_Timer timer; + timer.reset (); + timer.start (); + am->destroyApplication (app.in ()); + + timer.stop (); + + ACE_hrtime_t elapsed (0); + timer.elapsed_microseconds (elapsed); + outfile_ << "Total plan teardown time: " << elapsed << '\n'; + + outfile_.close (); } catch (const ::Deployment::StopError &ex) { -- cgit v1.2.1