summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-30 22:52:59 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-30 22:52:59 +0000
commit14e90ecf0b1278e69a885243e9539fb71bd3c117 (patch)
tree730070d1decf9ba7b4c645e6a9480a2da1dfaa37 /ace/High_Res_Timer.i
parentbd2977671a8f95067bca31d1a6c6ced8f958af7e (diff)
downloadATCD-14e90ecf0b1278e69a885243e9539fb71bd3c117.tar.gz
added ACE_HAS_AIX_HIRES_TIMER support. Also, renamed get_time () to elapsed_microseconds ().
Diffstat (limited to 'ace/High_Res_Timer.i')
-rw-r--r--ace/High_Res_Timer.i12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i
index e0fddd118d8..2d7d8c85f1c 100644
--- a/ace/High_Res_Timer.i
+++ b/ace/High_Res_Timer.i
@@ -3,7 +3,7 @@
// High_Res_Timer.i
-#if defined (ACE_HAS_HI_RES_TIMER)
+#if defined (ACE_HAS_HI_RES_TIMER) || defined (ACE_HAS_AIX_HIRES_TIMER)
ACE_INLINE
ACE_High_Res_Timer::ACE_High_Res_Timer (void)
@@ -40,14 +40,14 @@ ACE_High_Res_Timer::stop_incr (void)
#if defined (ACE_HAS_LONGLONG_T)
this->total_ += (ACE_OS::gethrtime () - this->temp_);
#else
-# error must have ACE_HAS_LONGLONG_T with ACE_HAS_HI_RES_TIMER
+# error must have ACE_HAS_LONGLONG_T with ACE_High_Res_Timer
#endif /* ACE_HAS_LONGLONG_T */
}
-ACE_INLINE unsigned long
-ACE_High_Res_Timer::get_time (void) const
+ACE_INLINE void
+ACE_High_Res_Timer::elapsed_microseconds (hrtime_t &usecs) const;
{
- return (this->end_ - this->start_) / 1000;
+ usecs = (this->end_ - this->start_) / 1000;
}
-#endif /* ACE_HAS_HI_RES_TIMER */
+#endif /* ACE_HAS_HI_RES_TIMER || ACE_HAS_AIX_HIRES_TIMER */