summaryrefslogtreecommitdiff
path: root/ACE/tests/NDDS_Timer_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-03-29 11:54:11 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-03-29 11:54:11 +0000
commit678287ff52627134b16ae56c8b7f229fb593057b (patch)
treeaeae4760b33da3bf707ab53a97348d2af093b429 /ACE/tests/NDDS_Timer_Test.cpp
parent235bd8a6e7575cb887d5be89df715db2f6bde47a (diff)
downloadATCD-678287ff52627134b16ae56c8b7f229fb593057b.tar.gz
Diffstat (limited to 'ACE/tests/NDDS_Timer_Test.cpp')
-rw-r--r--ACE/tests/NDDS_Timer_Test.cpp8
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);