summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.h
diff options
context:
space:
mode:
authorharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-28 00:58:00 +0000
committerharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-28 00:58:00 +0000
commit352a77955c817aab923caf0db437beedebc3c527 (patch)
tree6dc6db919d7384e5107e85fa3fc8f274858c2bfc /ace/High_Res_Timer.h
parenta65e54e9352696d7ff7cb431c20f65b26530fedb (diff)
downloadATCD-352a77955c817aab923caf0db437beedebc3c527.tar.gz
Fixed scale factor calculations.
Diffstat (limited to 'ace/High_Res_Timer.h')
-rw-r--r--ace/High_Res_Timer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index a2a0cc3be47..42fbcd40dae 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -51,6 +51,11 @@ public:
static int supported ();
// Returns 1 if high-resolution time is supported on the platform, 0 if not.
+ static int get_env_global_scale_factor (const char *env = "ACE_SCALE_FACTOR");
+ // Sets the global_scale_factor to the value in the <env>
+ // environment variable. Returns 0 on success, -1 on failure. Note
+ // if <env> points to string "0" (value zero), this call will fail.
+
static void global_scale_factor (double gsf);
// <gsf> is used as a global scale factor. Any High_Res_Timers
// constructed with scale_factor == 0 will check and use <gsf> if