diff options
author | seibel_r <seibel_r@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-25 20:08:00 +0000 |
---|---|---|
committer | seibel_r <seibel_r@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-08-25 20:08:00 +0000 |
commit | b8c8db2ebd9197186f976aa206be9a26f3dc3821 (patch) | |
tree | 09c98e34f3aea5cb225473f0a374d1a4669eb4d3 /TAO/examples | |
parent | b61d5cf703ed87ac5d5452f4921e0600cd42a1c1 (diff) | |
download | ATCD-b8c8db2ebd9197186f976aa206be9a26f3dc3821.tar.gz |
Wed Aug 25 15:06:35 2004 Rich Seibel <seibel_r@ociweb.com>
Diffstat (limited to 'TAO/examples')
-rw-r--r-- | TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp index 8ac9cf12210..28a01e93b28 100644 --- a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp +++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp @@ -168,14 +168,19 @@ Client::svc (void) //ACE_DEBUG ((LM_DEBUG, "...finished\n")); long dur = measured.sec () * 1000000 + measured.usec (); - 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_))); + 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_))); + } server_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; |