summaryrefslogtreecommitdiff
path: root/ace/High_Res_Timer.h
diff options
context:
space:
mode:
authorharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-23 19:21:13 +0000
committerharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-23 19:21:13 +0000
commitc0a9a1e11eb9420d47fa46656769678f4596e3ea (patch)
tree7da3d3f547229a4309b85ccc86304ec8c3681bea /ace/High_Res_Timer.h
parent27cee2b78b9f27567460b2c57a99fe560f530176 (diff)
downloadATCD-c0a9a1e11eb9420d47fa46656769678f4596e3ea.tar.gz
Made default <scale_factor> = 1 for all platforms, and the
global_scale_factor for non Win32 be 1000.
Diffstat (limited to 'ace/High_Res_Timer.h')
-rw-r--r--ace/High_Res_Timer.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index 6a970cdcca7..b12fb0bb974 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -74,11 +74,16 @@ public:
// will be used instead of ACE_OS::gethrtime. This allows the
// scale_factor of 1 to still result in correct values.
- ACE_High_Res_Timer (u_long scale_factor = 1000);
- // Initialize the timer. The <scale_factor> takes precedence to
- // global_scale_factor_. A scale_factor of 1000 converts the native
- // time in nanoseconds to microseconds. A factor of 0 will cause
- // division by zero exceptions.
+ ACE_High_Res_Timer (u_long scale_factor = 1);
+ // Initialize the timer. The <scale_factor> != 1 takes precedence
+ // to global_scale_factor_. That is, to use the
+ // global_scale_factor_, leave <scale_factor> == 1; to override the
+ // global_scale_factor, set <scale_factor> appropriately. Check
+ // High_Res_Timer.cpp for the default global_scale_factors for
+ // several platforms. For many platforms (e.g., Solaris), the
+ // global_scale_factor_ is set to 1000 so that <scale_factor> need
+ // not be set. Careful, a <scale_factor> of 0 will cause division
+ // by zero exceptions.
void reset (void);
// Reinitialize the timer.