diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-24 01:23:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-24 01:23:45 +0000 |
commit | 971b5fef4c0790745d71d7493090c54af9fc3b60 (patch) | |
tree | b9031b2eb4584c797d558a208156cb50296c257e /examples/Misc/test_profile_timer.cpp | |
parent | 39c67e8460275499ffcaf2ed95fe4df6cd157f28 (diff) | |
download | ATCD-pos_avsvc_split.tar.gz |
This commit was manufactured by cvs2svn to create tagpos_avsvc_split
'pos_avsvc_split'.
Diffstat (limited to 'examples/Misc/test_profile_timer.cpp')
-rw-r--r-- | examples/Misc/test_profile_timer.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
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; -} - |