diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-40fdc8a404e75ab03b68cc62e9987cf208fd8c30.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp')
-rw-r--r-- | TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp index 28a01e93b28..8ac9cf12210 100644 --- a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp +++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp @@ -168,19 +168,14 @@ Client::svc (void) //ACE_DEBUG ((LM_DEBUG, "...finished\n")); long dur = measured.sec () * 1000000 + measured.usec (); - if (dur == 0) - ACE_DEBUG ((LM_DEBUG, "Time not measurable, calculation skipped\n")); - else - { - ACE_DEBUG ((LM_DEBUG, - "Time for %u Msgs: %u usec \n", - this->niterations_, - dur)); - - ACE_DEBUG ((LM_DEBUG, "Time for 1 Msg: %u usec, %u calls/sec\n", - dur / this->niterations_, - 1000000 / (dur / this->niterations_))); - } + ACE_DEBUG ((LM_DEBUG, + "Time for %u Msgs: %u usec \n", + this->niterations_, + measured.sec () * 1000000 + measured.usec ())); + + ACE_DEBUG ((LM_DEBUG, "Time for 1 Msg: %u usec, %u calls/sec\n", + dur / this->niterations_, + 1000000 / (dur / this->niterations_))); server_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; |