0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
BasChronometer.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_COM_BAS_BASCHRONOMETER_HPP
2
#define __OPENTREP_COM_BAS_BASCHRONOMETER_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// Boost Date-Time (http://boost.org/doc/html/date_time/posix_time.html)
8
#include <boost/date_time/posix_time/posix_time.hpp>
9
10
namespace
OPENTREP
{
11
15
struct
BasChronometer
{
19
BasChronometer
();
20
26
void
start
();
27
31
std::string
getStart
()
const
{
32
return
boost::posix_time::to_simple_string (_startTime);
33
}
34
40
double
elapsed
()
const
;
41
42
private
:
46
boost::posix_time::ptime _startTime;
47
51
bool
_startTimeLaunched;
52
};
53
54
}
55
#endif
// __OPENTREP_COM_BAS_BASCHRONOMETER_HPP
OPENTREP
Definition
BasChronometer.cpp:10
OPENTREP::BasChronometer::elapsed
double elapsed() const
Definition
BasChronometer.cpp:27
OPENTREP::BasChronometer::BasChronometer
BasChronometer()
Definition
BasChronometer.cpp:13
OPENTREP::BasChronometer::getStart
std::string getStart() const
Definition
BasChronometer.hpp:31
OPENTREP::BasChronometer::start
void start()
Definition
BasChronometer.cpp:17
Generated on Mon May 5 2025 00:00:00 for OpenTREP by
1.13.2