summaryrefslogtreecommitdiff
path: root/ace/Profile_Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Profile_Timer.cpp')
-rw-r--r--ace/Profile_Timer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index abc017ccfba..1ffbea072a9 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -302,9 +302,11 @@ ACE_Profile_Timer::elapsed_time (ACE_Elapsed_Time &et)
ACE_hrtime_t delta_t; // nanoseconds
timer_.elapsed_time (delta_t);
-
+#if !defined (ghs)
et.real_time = (__int64) delta_t / (double) ACE_ONE_SECOND_IN_NSECS;
-
+#else
+ et.real_time = delta_t / (double) ACE_ONE_SECOND_IN_NSECS;
+#endif
# if defined (ACE_HAS_GETRUSAGE)
ACE_Time_Value atv = ACE_Time_Value (this->end_usage_.ru_utime)
- ACE_Time_Value (this->begin_usage_.ru_utime);