summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/TM_Daemon/Profile_Code.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/DAnCE/TM_Daemon/Profile_Code.cpp')
-rw-r--r--CIAO/DAnCE/TM_Daemon/Profile_Code.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/CIAO/DAnCE/TM_Daemon/Profile_Code.cpp b/CIAO/DAnCE/TM_Daemon/Profile_Code.cpp
index f846c148bd1..05707c37399 100644
--- a/CIAO/DAnCE/TM_Daemon/Profile_Code.cpp
+++ b/CIAO/DAnCE/TM_Daemon/Profile_Code.cpp
@@ -18,32 +18,32 @@ Profile_Code::~Profile_Code ()
void Profile_Code::start ()
{
-// if still running ... stop it and then run again ...
- if (running_)
- time.stop ();
+ // if still running ... stop it and then run again ...
+ if (this->running_)
+ {
+ this->timer_.stop ();
+ }
+
// start the timer ....
- time.start ();
+ this->timer_.start ();
- running_ = true;
+ this->running_ = true;
}
void Profile_Code::stop ()
{
- time.stop ();
-
- ACE_Time_Value tv;
-
- // time.elapsed_time (tv);
+ this->timer_.stop ();
+ this->timer_.elapsed_microseconds (this->elapsed_time_);
+ // reset the state
+ this->running_ = false;
- ACE_hrtime_t tm;
-
- time.elapsed_microseconds (tm);
+}
- // file_ << tv.msec () << std::endl;
- file_ << tm << std::endl;
+void
+Profile_Code::dump ()
+{
+ this->file_ << this->elapsed_time_ << std::endl;
- // reset the state
- running_ = false;
}