summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-23 05:09:12 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-23 05:09:12 +0000
commit3f790058e5bd97da3ab328e959bdb035e3f90261 (patch)
tree30bf0c44ca69c78604dc981eff27ee26d419c6cf
parent13fecb591de85ad80ff007a738835f2698f8bf69 (diff)
downloadATCD-3f790058e5bd97da3ab328e959bdb035e3f90261.tar.gz
changed scale_factor from u_long to double so it can be less than 1
-rw-r--r--ace/High_Res_Timer.h4
-rw-r--r--ace/High_Res_Timer.i2
2 files changed, 3 insertions, 3 deletions
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index 40bc64c58b6..fa940066ca7 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -51,7 +51,7 @@ public:
static int supported ();
// Returns 1 if high-resolution time is supported on the platform, 0 if not.
- ACE_High_Res_Timer (u_long scale_factor = 0);
+ ACE_High_Res_Timer (double scale_factor = 0);
// Initialize the timer.
void reset (void);
@@ -114,7 +114,7 @@ private:
ACE_hrtime_t start_incr_;
// Start time of incremental timing.
- u_long scale_factor_;
+ double scale_factor_;
};
#if defined (__ACE_INLINE__)
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i
index 9e043565643..286990f3ede 100644
--- a/ace/High_Res_Timer.i
+++ b/ace/High_Res_Timer.i
@@ -10,7 +10,7 @@ ACE_High_Res_Timer::supported ()
}
ACE_INLINE
-ACE_High_Res_Timer::ACE_High_Res_Timer (u_long scale_factor)
+ACE_High_Res_Timer::ACE_High_Res_Timer (double scale_factor)
: scale_factor_ (scale_factor)
{
ACE_TRACE ("ACE_High_Res_Timer::ACE_High_Res_Timer");