diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-13 22:33:05 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-13 22:33:05 +0000 |
commit | 8c2741557e986a77da6eb58cfc4829ffbbc53a7e (patch) | |
tree | eb127d4b5b519fb0d67713d00d3e523a27dfc3eb /ace/Profile_Timer.i | |
parent | e68c220338fccf2048bacb7705ef324fdcbb8a59 (diff) | |
download | ATCD-8c2741557e986a77da6eb58cfc4829ffbbc53a7e.tar.gz |
added ACE_LACKS_FLOATING_POINT support
Diffstat (limited to 'ace/Profile_Timer.i')
-rw-r--r-- | ace/Profile_Timer.i | 40 |
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 (); |