diff options
author | mcorino <mcorino@users.noreply.github.com> | 2004-12-02 14:29:48 +0000 |
---|---|---|
committer | mcorino <mcorino@users.noreply.github.com> | 2004-12-02 14:29:48 +0000 |
commit | 600b0bff796604eea569baa85da4c669d44b1df6 (patch) | |
tree | 9243afc2d384d4f0baca47a8ef29577b3b072f3f | |
parent | bc3d8dcb5f09b78f6cad9046fb91fb172e08a090 (diff) | |
download | ATCD-600b0bff796604eea569baa85da4c669d44b1df6.tar.gz |
ChangeLogTag: Thu Dec 2 14:26:12 UTC 2004 Martin Corino <mcorino@remedy.nl>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ace/Timeprobe_T.cpp | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 7df7a954f9d..542f29bbe16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Dec 2 14:26:12 UTC 2004 Martin Corino <mcorino@remedy.nl> + + * ace/Timeprobe_T.cpp: + Fixed error in ACE_Timeprobe_Ex<>::print_absolute_times() where ACE_hrtime_t + was incorrectly assumed to be a structure/class (it's an integer type). + Thu Dec 2 09:45:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl> * bin/PerlACE/ConfigList.pm: diff --git a/ace/Timeprobe_T.cpp b/ace/Timeprobe_T.cpp index 49f98b426cc..3540537025f 100644 --- a/ace/Timeprobe_T.cpp +++ b/ace/Timeprobe_T.cpp @@ -329,14 +329,17 @@ ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR>::print_absolute_times (void) i = this->current_size_; } + ACE_Time_Value tv; // to convert ACE_hrtime_t do { + ACE_High_Res_Timer::hrtime_to_tv (tv, this->timeprobes_ [i].time_); + ACE_DEBUG ((LM_DEBUG, "%-50.50s %8.8x %12.12u\n", this->find_description_i (i), this->timeprobes_ [i].thread_, - this->timeprobes_ [i].time_.sec () * 1000000 - + this->timeprobes_[i].time_.usec ())); + tv.sec () * 1000000 + + tv.usec ())); i = (i + 1) % this ->max_size_; // Modulus increment: loops around at the end. } while (i != this->current_size_); |