Structure allowing measuring the time elapsed between two events. More...
#include <opentrep/basic/BasChronometer.hpp>
Public Member Functions | |
BasChronometer () | |
void | start () |
std::string | getStart () const |
double | elapsed () const |
Structure allowing measuring the time elapsed between two events.
Definition at line 15 of file BasChronometer.hpp.
OPENTREP::BasChronometer::BasChronometer | ( | ) |
Constructor.
Definition at line 13 of file BasChronometer.cpp.
void OPENTREP::BasChronometer::start | ( | ) |
Start the chronometer from the local time.
The elapsed time given is the one elapsed since the start is launched.
Definition at line 17 of file BasChronometer.cpp.
Referenced by OPENTREP::OPENTREP_Service::createSQLDBIndexes(), OPENTREP::OPENTREP_Service::createSQLDBTables(), OPENTREP::OPENTREP_Service::createSQLDBUser(), OPENTREP::OPENTREP_Service::drawRandomLocations(), OPENTREP::OPENTREP_Service::getIndexSize(), OPENTREP::OPENTREP_Service::getNbOfPORFromDB(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), OPENTREP::OPENTREP_Service::interpretTravelRequest(), OPENTREP::OPENTREP_Service::listByFaaCode(), OPENTREP::OPENTREP_Service::listByGeonameID(), OPENTREP::OPENTREP_Service::listByIataCode(), OPENTREP::OPENTREP_Service::listByIcaoCode(), OPENTREP::OPENTREP_Service::listByUICCode(), and OPENTREP::OPENTREP_Service::listByUNLOCode().
|
inline |
Get the start time.
Definition at line 31 of file BasChronometer.hpp.
double OPENTREP::BasChronometer::elapsed | ( | ) | const |
Return the time elapsed since the structure has been instanciated.
That elapsed time is expressed in seconds.
Definition at line 27 of file BasChronometer.cpp.
Referenced by OPENTREP::OPENTREP_Service::createSQLDBIndexes(), OPENTREP::OPENTREP_Service::createSQLDBTables(), OPENTREP::OPENTREP_Service::createSQLDBUser(), OPENTREP::OPENTREP_Service::drawRandomLocations(), OPENTREP::OPENTREP_Service::getIndexSize(), OPENTREP::OPENTREP_Service::getNbOfPORFromDB(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), OPENTREP::OPENTREP_Service::interpretTravelRequest(), OPENTREP::OPENTREP_Service::listByFaaCode(), OPENTREP::OPENTREP_Service::listByGeonameID(), OPENTREP::OPENTREP_Service::listByIataCode(), OPENTREP::OPENTREP_Service::listByIcaoCode(), OPENTREP::OPENTREP_Service::listByUICCode(), and OPENTREP::OPENTREP_Service::listByUNLOCode().