summaryrefslogtreecommitdiff
path: root/ace/Profile_Timer.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-18 17:55:55 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-18 17:55:55 +0000
commit968f43b5448492f9ca567e70ba52a4d215777577 (patch)
tree5d847b6d1a97293551b842b243ab9a1c7cd89df9 /ace/Profile_Timer.cpp
parentfac73bea860b51e5ca378f899aec02154220c94c (diff)
downloadATCD-968f43b5448492f9ca567e70ba52a4d215777577.tar.gz
removed dependence on ACE_U_LongLong
Diffstat (limited to 'ace/Profile_Timer.cpp')
-rw-r--r--ace/Profile_Timer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index 54f7f454d26..25189ea931a 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -244,12 +244,7 @@ ACE_Profile_Timer::elapsed_time (ACE_Elapsed_Time &et)
ACE_hrtime_t delta_t; /* nanoseconds */
timer_.elapsed_time (delta_t);
-#if defined (ACE_WIN32) || defined (ACE_HAS_LONGLONG_T)
- et.real_time = delta_t / (double) ACE_ONE_SECOND_IN_NSECS;
-#else
- et.real_time = (double) ULONG_MAX / (double) ACE_ONE_SECOND_IN_NSECS * (double) delta_t.hi () +
- (double) delta_t.lo () / (double) ACE_ONE_SECOND_IN_NSECS;
-#endif /* ACE_WIN32 || ACE_HAS_LONGLONG_T */
+ et.real_time = (double) (delta_t / (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS);
et.user_time = 0;
et.system_time = 0;