summaryrefslogtreecommitdiff
path: root/ace/Profile_Timer.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-13 22:33:05 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-13 22:33:05 +0000
commit49801295f0e8d52390c2713b3c8c264dc714870c (patch)
treeeb127d4b5b519fb0d67713d00d3e523a27dfc3eb /ace/Profile_Timer.i
parent41ee4abd3a5c888abf9a4a86b1cc701fc23aa0e2 (diff)
downloadATCD-49801295f0e8d52390c2713b3c8c264dc714870c.tar.gz
added ACE_LACKS_FLOATING_POINT support
Diffstat (limited to 'ace/Profile_Timer.i')
-rw-r--r--ace/Profile_Timer.i40
1 files changed, 19 insertions, 21 deletions
diff --git a/ace/Profile_Timer.i b/ace/Profile_Timer.i
index 4d8ddc93dac..5571c9d7c9e 100644
--- a/ace/Profile_Timer.i
+++ b/ace/Profile_Timer.i
@@ -1,32 +1,30 @@
/* -*- C++ -*- */
// $Id$
-// Profile_Timer.i
-
#if defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)
#if defined (ACE_HAS_PRUSAGE_T)
-ACE_INLINE int
-ACE_Profile_Timer::start (void)
+ACE_INLINE int
+ACE_Profile_Timer::start (void)
{
ACE_TRACE ("ACE_Profile_Timer::start");
- return ACE_OS::ioctl (this->proc_handle_,
- PIOCUSAGE,
- &this->begin_usage_);
+ return ACE_OS::ioctl (this->proc_handle_,
+ PIOCUSAGE,
+ &this->begin_usage_);
}
-ACE_INLINE int
-ACE_Profile_Timer::stop (void)
+ACE_INLINE int
+ACE_Profile_Timer::stop (void)
{
ACE_TRACE ("ACE_Profile_Timer::stop");
this->last_usage_ = this->end_usage_;
- return ACE_OS::ioctl (this->proc_handle_,
- PIOCUSAGE,
- &this->end_usage_);
+ return ACE_OS::ioctl (this->proc_handle_,
+ PIOCUSAGE,
+ &this->end_usage_);
}
-#elif defined (ACE_HAS_GETRUSAGE)
-ACE_INLINE int
-ACE_Profile_Timer::start (void)
+#elif defined (ACE_HAS_GETRUSAGE)
+ACE_INLINE int
+ACE_Profile_Timer::start (void)
{
ACE_TRACE ("ACE_Profile_Timer::start");
this->begin_time_ = ACE_OS::gettimeofday ();
@@ -34,8 +32,8 @@ ACE_Profile_Timer::start (void)
return 0;
}
-ACE_INLINE int
-ACE_Profile_Timer::stop (void)
+ACE_INLINE int
+ACE_Profile_Timer::stop (void)
{
ACE_TRACE ("ACE_Profile_Timer::stop");
this->last_time_ = this->end_time_;
@@ -49,16 +47,16 @@ ACE_Profile_Timer::stop (void)
#else
-ACE_INLINE int
-ACE_Profile_Timer::start (void)
+ACE_INLINE int
+ACE_Profile_Timer::start (void)
{
ACE_TRACE ("ACE_Profile_Timer::start");
timer_.start ();
return 0;
}
-ACE_INLINE int
-ACE_Profile_Timer::stop (void)
+ACE_INLINE int
+ACE_Profile_Timer::stop (void)
{
ACE_TRACE ("ACE_Profile_Timer::stop");
timer_.stop ();