summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-03-29 13:32:21 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-03-29 13:32:21 +0000
commit80bd100756193187b53be9f981d002cf0a22110d (patch)
tree2ba42ffa74d2aaf293bccbca3a51f205ef47b6ef
parent79d56ea924fd55de887b538f5fe30c7400f7543b (diff)
downloadATCD-80bd100756193187b53be9f981d002cf0a22110d.tar.gz
-rw-r--r--ACE/tests/NDDS_Timer_Test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/ACE/tests/NDDS_Timer_Test.cpp b/ACE/tests/NDDS_Timer_Test.cpp
index 90950497ee0..21077207fc5 100644
--- a/ACE/tests/NDDS_Timer_Test.cpp
+++ b/ACE/tests/NDDS_Timer_Test.cpp
@@ -85,7 +85,7 @@ check_micro_nano (unsigned long long microinterval, unsigned long long nanointer
static
void
time_interval (RTIClock *timer,
- const DDS_Duration_t& interval,
+ const ACE_Time_Value & interval,
RTINtpTime& duration)
{
struct RTINtpTime start_time;
@@ -99,7 +99,7 @@ time_interval (RTIClock *timer,
// Run the test
timer->getTime(timer, &start_time);
- NDDSUtility::sleep(interval);
+ ACE_OS::sleep (interval);
timer->getTime(timer, &finish_time);
// Measure.
@@ -140,9 +140,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
for (u_int j = 0; j < iterations; ++j)
{
- DDS_Duration_t interval;
- interval.sec = 0;
- interval.nanosec = intervals[i] * 1000;
+ ACE_Time_Value const interval (0, intervals[i]);
RTINtpTime duration;
time_interval (timer, interval, duration);