16 using namespace boost::posix_time;
20 last_start_(getCurrentTime()),
21 last_stop_(last_start_),
22 cumulative_time_(microseconds(0)) {
43 cumulative_time_ += last_stop_ - last_start_;
54 last_stop_ = last_start_;
56 cumulative_time_ = microseconds(0);
66 return (end_time - last_start_);
72 time_duration total_duration = cumulative_time_;
78 return (total_duration);
84 s << duration.total_milliseconds() <<
".";
85 s << std::setfill(
'0') << std::setw(3) << (duration.total_microseconds() % 1000)
92 return (microsec_clock::universal_time());