diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-03-29 13:32:21 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-03-29 13:32:21 +0000 |
commit | 9d0c33ec660737bc13f36e68d9ebf3e4275a38d9 (patch) | |
tree | 2ba42ffa74d2aaf293bccbca3a51f205ef47b6ef /ACE/tests/NDDS_Timer_Test.cpp | |
parent | c827520d94d29b4d74c49d2d2b8dc63354098ba0 (diff) | |
download | ATCD-9d0c33ec660737bc13f36e68d9ebf3e4275a38d9.tar.gz |
Diffstat (limited to 'ACE/tests/NDDS_Timer_Test.cpp')
-rw-r--r-- | ACE/tests/NDDS_Timer_Test.cpp | 8 |
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); |