summaryrefslogtreecommitdiff
path: root/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp')
-rw-r--r--TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp21
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;