From 7a042e4f8a987a50143415af690a878881d4b48f Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 13 Sep 1999 00:26:05 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TAO-1_0_4'. --- examples/Misc/test_profile_timer.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 examples/Misc/test_profile_timer.cpp (limited to 'examples/Misc/test_profile_timer.cpp') diff --git a/examples/Misc/test_profile_timer.cpp b/examples/Misc/test_profile_timer.cpp deleted file mode 100644 index 3da092e9954..00000000000 --- a/examples/Misc/test_profile_timer.cpp +++ /dev/null @@ -1,34 +0,0 @@ -// $Id$ - -#include "ace/Profile_Timer.h" - -ACE_RCSID(Misc, test_profile_timer, "$Id$") - -static const int DEFAULT_ITERATIONS = 100000000; - -int -main (int argc, char *argv[]) -{ - ACE_Profile_Timer timer; - int iterations = argc > 1 ? ACE_OS::atoi (argv[1]) : DEFAULT_ITERATIONS; - - timer.start (); - - for (int i = 0; i < iterations; i++) - ACE_OS::getpid (); - - timer.stop (); - - ACE_Profile_Timer::ACE_Elapsed_Time et; - - timer.elapsed_time (et); - - ACE_DEBUG ((LM_DEBUG, "iterations = %d\n", iterations)); - ACE_DEBUG ((LM_DEBUG, "real time = %f secs, user time = %f secs, system time = %f secs\n", - et.real_time, et.user_time, et.system_time)); - - ACE_DEBUG ((LM_DEBUG, "time per call = %f usecs\n", - (et.real_time / double (iterations)) * 1000000)); - return 0; -} - -- cgit v1.2.1