diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-12 19:01:05 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-12 19:01:05 +0000 |
commit | 7ecc9a8ee0b3e629728e81e78f819a4d58aaeae2 (patch) | |
tree | bb5ec9a1c265851977d93513b6a4757630a56792 /ace/High_Res_Timer.cpp | |
parent | afbad282e36cceec9361a49d5194331a06432856 (diff) | |
download | ATCD-7ecc9a8ee0b3e629728e81e78f819a4d58aaeae2.tar.gz |
ChangeLogTag:Fri May 12 11:25:10 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/High_Res_Timer.cpp')
-rw-r--r-- | ace/High_Res_Timer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/High_Res_Timer.cpp b/ace/High_Res_Timer.cpp index de4d38eb77c..8b60b3bcf79 100644 --- a/ace/High_Res_Timer.cpp +++ b/ace/High_Res_Timer.cpp @@ -353,14 +353,16 @@ ACE_High_Res_Timer::elapsed_time (ACE_hrtime_t &nanoseconds) const // Please do _not_ rearrange this equation. It is carefully // designed and tested to avoid overflow on machines that don't have // native 64-bit ints. - nanoseconds = (this->end_ - this->start_) * (1000u / this->global_scale_factor ()); + nanoseconds = (this->end_ - this->start_) + * (1000u / ACE_High_Res_Timer::global_scale_factor ()); } void ACE_High_Res_Timer::elapsed_time_incr (ACE_hrtime_t &nanoseconds) const { // Same as above. - nanoseconds = this->total_ / this->global_scale_factor () * 1000u; + nanoseconds = this->total_ + / ACE_High_Res_Timer::global_scale_factor () * 1000u; } #if !defined (ACE_HAS_WINCE) |