summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-17 22:32:48 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-17 22:32:48 +0000
commit8284ee064eea0dca688f16d9e78e6948cad8dac0 (patch)
tree5402f9a8f597791c8a414b2c0c2ea38767dcef88 /ace/High_Res_Timer.i
parent024141b5fecfc3efb96d0b52e867b4169a5b238a (diff)
downloadATCD-8284ee064eea0dca688f16d9e78e6948cad8dac0.tar.gz
added elapsed_time () and getTime () to High_Res_Timer
Diffstat (limited to 'ace/High_Res_Timer.i')
-rw-r--r--ace/High_Res_Timer.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i
index ac2182fa8f4..1d97c322140 100644
--- a/ace/High_Res_Timer.i
+++ b/ace/High_Res_Timer.i
@@ -43,4 +43,11 @@ ACE_High_Res_Timer::stop_incr (void)
# error must have ACE_HAS_LONGLONG_T with ACE_HAS_HI_RES_TIMER
#endif /* ACE_HAS_LONGLONG_T */
}
+
+ACE_INLINE unsigned long
+ACE_High_Res_Timer::getTime (void)
+{
+ return (this->end_ - this->start_) / 1000;
+}
+
#endif /* ACE_HAS_HI_RES_TIMER */