summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp')
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp
index 4c5c942cff7..d4ef62e9781 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.cpp
@@ -22,11 +22,15 @@ Roundtrip::test_method (Test::Timestamp send_time,
{
ACE_hrtime_t start = ACE_OS::gethrtime ();
CORBA::Long elapsed = 0;
+
while (elapsed < workload_in_usecs)
{
- // ACE_OS::sleep (0);
- elapsed = (ACE_OS::gethrtime () - start) / this->gsf_;
+ elapsed =
+ static_cast<CORBA::Long> (
+ (ACE_OS::gethrtime () - start) / this->gsf_
+ );
}
+
return send_time;
}