StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
BasChronometer.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_BASCHRONOMETER_HPP
2 #define __STDAIR_BAS_BASCHRONOMETER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // Boost (STL Extension)
8 // Boost Date-Time (http://boost.org/doc/html/date_time/posix_time.html)
9 #include <boost/date_time/posix_time/posix_time.hpp>
10 
11 namespace stdair {
12 
14  struct BasChronometer {
17 
21  void start ();
22 
24  std::string getStart () const {
25  return boost::posix_time::to_simple_string (_startTime);
26  }
27 
30  double elapsed () const;
31 
32  private:
34  boost::posix_time::ptime _startTime;
35 
37  bool _startTimeLaunched;
38  };
39 
40 }
41 #endif // __STDAIR_BAS_BASCHRONOMETER_HPP
Handle on the StdAir library context.
std::string getStart() const
double elapsed() const