18 _startTime = boost::posix_time::microsec_clock::local_time();
22 _startTimeLaunched =
true;
27 assert (_startTimeLaunched ==
true);
30 const boost::posix_time::ptime lStopTime =
31 boost::posix_time::microsec_clock::local_time();
34 const boost::posix_time::time_duration lElapsedTime =
35 lStopTime - _startTime;
38 const double lElapsedTimeInMicroSeconds =
39 static_cast<const double> (lElapsedTime.total_microseconds());
42 return (lElapsedTimeInMicroSeconds / 1e6);