summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-27 17:59:53 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-27 17:59:53 +0000
commite5c7cdf9668f113c84431f9a88ab6d2aaec5561b (patch)
treedc98ba6bcdfba6e8f375872d384c7e2d252cdc23 /ace/High_Res_Timer.h
parentfb40008f34cddab726018a9c6534088fa93c4d5d (diff)
downloadATCD-e5c7cdf9668f113c84431f9a88ab6d2aaec5561b.tar.gz
added calibrate ()
Diffstat (limited to 'ace/High_Res_Timer.h')
-rw-r--r--ace/High_Res_Timer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index 84933d0eff7..d3b4d1a3566 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -83,6 +83,17 @@ public:
// This is basically a no-op on CE because there is no concept of
// environment variable on CE.
+ static ACE_UINT32 calibrate (const ACE_UINT32 usec = 500000,
+ const u_int iterations = 10);
+ // Set (and return, for info) the global scale factor by sleeping
+ // for <usec> and counting the number of intervening clock cycles.
+ // Average over <iterations> of <usec> each. On some platforms,
+ // such as Pentiums, this is called automatically during the first
+ // ACE_High_Res_Timer construction with the default parameter
+ // values. An application can override that by calling calibrate
+ // with any desired parameter values _prior_ to constructing the
+ // first ACE_High_Res_Timer instance.
+
ACE_High_Res_Timer (void);
// Initialize the timer.