diff options
author | Steve Huston <shuston@riverace.com> | 1997-08-09 22:21:43 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-08-09 22:21:43 +0000 |
commit | 37b37b0073bf678d6287f7e52474f4a02c94c707 (patch) | |
tree | dcca1212eb59e2088e6a1e56582bc88213976510 | |
parent | ab5628aad80a2070aa7052f35ea700444cf9ecfc (diff) | |
download | ATCD-37b37b0073bf678d6287f7e52474f4a02c94c707.tar.gz |
For the ACE_HAS_GETRUSAGE platforms, start() and stop() now use
ACE_OS::gettimeofday rather than ACE_High_Res_Timer::gettimeofday, since:
1. (Currently) ACE_High_Res_Timer::gettimeofday doesn't return correct
times on HP-UX.
2. Comments in ACE_High_Res_Timer say not to use gettimeofday - to use
ACE_OS::gettimeofday instead.
-rw-r--r-- | ace/Profile_Timer.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Profile_Timer.i b/ace/Profile_Timer.i index 49e2dc7a201..4d8ddc93dac 100644 --- a/ace/Profile_Timer.i +++ b/ace/Profile_Timer.i @@ -29,7 +29,7 @@ ACE_INLINE int ACE_Profile_Timer::start (void) { ACE_TRACE ("ACE_Profile_Timer::start"); - this->begin_time_ = ACE_High_Res_Timer::gettimeofday (); + this->begin_time_ = ACE_OS::gettimeofday (); ACE_OS::getrusage (RUSAGE_SELF, &this->begin_usage_); return 0; } @@ -39,7 +39,7 @@ ACE_Profile_Timer::stop (void) { ACE_TRACE ("ACE_Profile_Timer::stop"); this->last_time_ = this->end_time_; - this->end_time_ = ACE_High_Res_Timer::gettimeofday (); + this->end_time_ = ACE_OS::gettimeofday (); this->last_usage_ = this->end_usage_; ACE_OS::getrusage (RUSAGE_SELF, &this->end_usage_); return 0; |