1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
{
16
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
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1