summaryrefslogtreecommitdiff
path: root/ACE/ace/Profile_Timer.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Profile_Timer.inl')
-rw-r--r--ACE/ace/Profile_Timer.inl35
1 files changed, 4 insertions, 31 deletions
diff --git a/ACE/ace/Profile_Timer.inl b/ACE/ace/Profile_Timer.inl
index d0fd3afc58f..f4be327fac8 100644
--- a/ACE/ace/Profile_Timer.inl
+++ b/ACE/ace/Profile_Timer.inl
@@ -3,35 +3,8 @@
#include "ace/OS_NS_sys_resource.h"
#include "ace/Global_Macros.h"
-#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
-
-# if defined (ACE_HAS_PRUSAGE_T)
-# include "ace/OS_NS_stropts.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE int
-ACE_Profile_Timer::start ()
-{
- ACE_TRACE ("ACE_Profile_Timer::start");
- return ACE_OS::ioctl (this->proc_handle_,
- PIOCUSAGE,
- &this->begin_usage_);
-}
-
-ACE_INLINE int
-ACE_Profile_Timer::stop ()
-{
- ACE_TRACE ("ACE_Profile_Timer::stop");
- this->last_usage_ = this->end_usage_;
- return ACE_OS::ioctl (this->proc_handle_,
- PIOCUSAGE,
- &this->end_usage_);
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-# elif defined (ACE_HAS_GETRUSAGE)
+#if defined (ACE_HAS_GETRUSAGE) && !defined (ACE_WIN32)
+# if defined (ACE_HAS_GETRUSAGE)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -59,7 +32,7 @@ ACE_Profile_Timer::stop ()
ACE_END_VERSIONED_NAMESPACE_DECL
-# endif /* ACE_HAS_PRUSAGE_T */
+# endif /* ACE_HAS_GETRUSAGE */
#elif defined (ACE_WIN32)
@@ -123,4 +96,4 @@ ACE_Profile_Timer::~ACE_Profile_Timer ()
ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE) */
+#endif /* defined (ACE_HAS_GETRUSAGE) */