summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-11 19:02:32 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-11 19:02:32 +0000
commitb5cea0a4629624183d5c86163ac4da4d9a87fe83 (patch)
tree286f403ec9fc0b09b70f9fe8b47a3b30f3ae8ee0
parent4c3537c33e2dd602ee422f6ff0a3bc982d533b54 (diff)
downloadATCD-b5cea0a4629624183d5c86163ac4da4d9a87fe83.tar.gz
removed supported () because gettimeofday () is used if a high-res timer isn't available
-rw-r--r--ace/High_Res_Timer.h8
-rw-r--r--ace/High_Res_Timer.i6
2 files changed, 2 insertions, 12 deletions
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index 07976d1a90b..d119b529075 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -28,9 +28,8 @@ class ACE_Export ACE_High_Res_Timer
// Most of the member functions don't return values. The only
// reason that one would fail is if high-resolution time isn't
// supported on the platform. To avoid impacting performance and
- // complicating the interface, the "supported ()" member function was
- // added. It returns 1 if high-resolution time (ACE_OS::gethrtime ())
- // is supported on the platform, and 0 if not.
+ // complicating the interface, in that case, ACE_OS::gettimeofday ()
+ // is used instead.
//
// The global scale factor is required for platforms that have
// high-resolution timers that return units other than
@@ -56,9 +55,6 @@ class ACE_Export ACE_High_Res_Timer
public:
// = Initialization method.
- static int supported ();
- // Returns 1 if high-resolution time is supported on the platform, 0 if not.
-
static void global_scale_factor (u_long gsf);
// global_scale_factor_ is set to <gsf>. All High_Res_Timers use
// global_scale_factor_. This allows applications to set the scale
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i
index acd82ea4e14..59f305d2e09 100644
--- a/ace/High_Res_Timer.i
+++ b/ace/High_Res_Timer.i
@@ -3,12 +3,6 @@
// High_Res_Timer.i
-ACE_INLINE int
-ACE_High_Res_Timer::supported ()
-{
- return ACE_OS::gethrtime () != -1;
-}
-
ACE_INLINE
ACE_High_Res_Timer::ACE_High_Res_Timer (void)
{