summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-17 21:14:46 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-17 21:14:46 +0000
commit1657ad6a4961822cca31c192abf59fa31606bb4a (patch)
tree0d8c3fec35603337295db970c92c4f9addea3eb1
parentcda6f47a72531c9eab40971b68099f60d69ccdda (diff)
downloadATCD-1657ad6a4961822cca31c192abf59fa31606bb4a.tar.gz
(dump): implemented for platforms w/o ACE_HAS_PRUSAGE_T and ACE_HAS_GETRUSAGE
-rw-r--r--ace/Profile_Timer.cpp7
-rw-r--r--ace/Profile_Timer.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index 5576894a9f3..9e41bcd0e0e 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -230,6 +230,13 @@ ACE_Profile_Timer::elapsed_time (ACE_Elapsed_Time &et)
#else
+void
+ACE_Profile_Timer::dump (void) const
+{
+ ACE_TRACE ("ACE_Profile_Timer::dump");
+ timer_.dump ();
+}
+
ACE_Profile_Timer::ACE_Profile_Timer (void)
: timer_ ()
{
diff --git a/ace/Profile_Timer.h b/ace/Profile_Timer.h
index 03fc4a9b005..e984f504e8f 100644
--- a/ace/Profile_Timer.h
+++ b/ace/Profile_Timer.h
@@ -140,6 +140,9 @@ public:
int stop (void);
int elapsed_time (ACE_Elapsed_Time &et);
+ void dump (void) const;
+ // Dump the state of an object.
+
private:
ACE_High_Res_Timer timer_;
};