summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-11-26 05:16:25 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2011-11-26 05:16:25 +0000
commitf18c9c1b32a3a58854168a88249e5959170d5568 (patch)
treea07b0156d3b6183f2e58925c6a128528822c9c02
parent91b8c3dfb4ec1da373416ce65e727792bf293f5e (diff)
downloadATCD-f18c9c1b32a3a58854168a88249e5959170d5568.tar.gz
-rw-r--r--DAnCE/dance/Plan_Launcher/Plan_Launcher_Base_Impl_T.cpp16
1 files changed, 16 insertions, 0 deletions
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)
{