diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-03-29 11:54:11 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-03-29 11:54:11 +0000 |
commit | 678287ff52627134b16ae56c8b7f229fb593057b (patch) | |
tree | aeae4760b33da3bf707ab53a97348d2af093b429 /ACE/tests/NDDS_Timer_Test.cpp | |
parent | 235bd8a6e7575cb887d5be89df715db2f6bde47a (diff) | |
download | ATCD-678287ff52627134b16ae56c8b7f229fb593057b.tar.gz |
Diffstat (limited to 'ACE/tests/NDDS_Timer_Test.cpp')
-rw-r--r-- | ACE/tests/NDDS_Timer_Test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/tests/NDDS_Timer_Test.cpp b/ACE/tests/NDDS_Timer_Test.cpp index ee576748e9f..c7b6a79c857 100644 --- a/ACE/tests/NDDS_Timer_Test.cpp +++ b/ACE/tests/NDDS_Timer_Test.cpp @@ -88,17 +88,17 @@ time_interval (const DDS_Duration_t& interval, unsigned long long& nanoseconds, unsigned long long& microseconds) { - RTIClock *timer; - timer = RTIHighResolutionClock_new(); + RTIClock *timer = RTIHighResolutionClock_new(); struct RTINtpTime start_time; struct RTINtpTime finish_time; - // Initialize - timer->reset(timer); RTINtpTime_setZero(&start_time); RTINtpTime_setZero(&finish_time); + // Initialize + timer->reset(timer); + // Run the test timer->getTime(timer, &start_time); NDDSUtility::sleep(interval); |