summaryrefslogtreecommitdiff
path: root/ace/Profile_Timer.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 04:58:52 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 04:58:52 +0000
commitfaf2ac3ad954bde3964781d0eedd5dd3c92ca291 (patch)
treefaf3ca6c045f23cf12cb407c3db92b493d3b1744 /ace/Profile_Timer.cpp
parent677ec58739f7ab15823012db272200095332bbed (diff)
downloadATCD-faf2ac3ad954bde3964781d0eedd5dd3c92ca291.tar.gz
User/system time difference calculation was missing.
Diffstat (limited to 'ace/Profile_Timer.cpp')
-rw-r--r--ace/Profile_Timer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index 9e41bcd0e0e..768d4c0d60c 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -162,8 +162,10 @@ ACE_Profile_Timer::elapsed_rusage (ACE_Profile_Timer::Rusage &usage)
usage.ru_nvcsw = this->end_usage_.ru_nvcsw - this->last_usage_.ru_nvcsw;
// involuntary context switches
usage.ru_nivcsw = this->end_usage_.ru_nivcsw - this->last_usage_.ru_nivcsw;
+ this->subtract (usage.ru_utime, this->end_usage_.ru_utime, this->last_usage_.ru_utime);
+ this->subtract (usage.ru_stime, this->end_usage_.ru_stime, this->last_usage_.ru_stime);
#else
- ACE_UNUSED_ARG(usage);
+ ACE_UNUSED_ARG(usage);
#endif /* ACE_WIN32 */
}