diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-05-16 18:50:23 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-05-16 18:50:23 +0000 |
commit | 237ef7f19f4b7c0c34df39a58bef5c03e4ae9494 (patch) | |
tree | 1d005a52147cf0eb677102778ff3ae9f64c9106c /TAO/performance-tests/Latency | |
parent | a71939c059a4e4aef295b6b2b8a603bac6d558ae (diff) | |
download | ATCD-237ef7f19f4b7c0c34df39a58bef5c03e4ae9494.tar.gz |
ChangeLogTag:Wed May 16 11:49:07 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/performance-tests/Latency')
-rw-r--r-- | TAO/performance-tests/Latency/AMI/client.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/performance-tests/Latency/AMI/client.cpp b/TAO/performance-tests/Latency/AMI/client.cpp index 2a6d4421266..373b8d66a0d 100644 --- a/TAO/performance-tests/Latency/AMI/client.cpp +++ b/TAO/performance-tests/Latency/AMI/client.cpp @@ -5,6 +5,7 @@ #include "ace/Get_Opt.h" #include "ace/High_Res_Timer.h" #include "ace/Sched_Params.h" +#include "ace/Stats.h" ACE_RCSID(AMI_Latency, client, "$Id$") @@ -132,6 +133,8 @@ main (int argc, char *argv[]) poa_manager->activate (ACE_TRY_ENV); ACE_TRY_CHECK; + ACE_hrtime_t test_start = ACE_OS::gethrtime (); + for (int i = 0; i != niterations; ++i) { // Invoke asynchronous operation.... @@ -144,12 +147,18 @@ main (int argc, char *argv[]) ACE_TRY_CHECK; } + ACE_hrtime_t test_end = ACE_OS::gethrtime (); + ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration....")); ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor (); ACE_DEBUG ((LM_DEBUG, "done\n")); roundtrip_handler_impl->dump_results (gsf); + ACE_Throughput_Stats::dump_throughput ("Total", gsf, + test_end - test_start, + stats.samples_count ()); + roundtrip->shutdown (ACE_TRY_ENV); ACE_TRY_CHECK; |