libosmscout
0.1
|
#include <StopClock.h>
Public Member Functions | |
std::chrono::steady_clock::duration | GetDuration () const |
double | GetMilliseconds () const |
bool | IsSignificant () const |
Return true, if the measured time is siginificant, which means, that it has an value of at least one millisecond. More... | |
StopClock & | operator= (const StopClock &)=delete |
StopClock & | operator= (StopClock &&)=default |
std::string | ResultString () const |
void | Stop () |
StopClock () | |
StopClock (const StopClock &)=delete | |
StopClock (StopClock &&)=default | |
~StopClock ()=default | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const StopClock &stopClock) |
Simple stop clock implementation.
osmscout::StopClock::StopClock | ( | ) |
|
default |
|
delete |
|
default |
std::chrono::steady_clock::duration osmscout::StopClock::GetDuration | ( | ) | const |
double osmscout::StopClock::GetMilliseconds | ( | ) | const |
Referenced by osmscout::MapService::AddTileDataToMapData(), osmscout::Database::GetAreaByOffset(), osmscout::OptimizeAreasLowZoom::GetAreas(), osmscout::AreaAreaIndex::GetAreasInArea(), osmscout::Database::GetNodeByOffset(), osmscout::Database::GetNodesByOffset(), osmscout::AreaIndex::GetOffsets(), osmscout::AreaNodeIndex::GetOffsets(), osmscout::Database::GetWayByOffset(), osmscout::OptimizeWaysLowZoom::GetWays(), IsSignificant(), osmscout::NavigationModule::loadRoutableObjects(), osmscout::operator<<(), and ResultString().
bool osmscout::StopClock::IsSignificant | ( | ) | const |
Return true, if the measured time is siginificant, which means, that it has an value of at least one millisecond.
References GetMilliseconds().
std::string osmscout::StopClock::ResultString | ( | ) | const |
References GetMilliseconds().
Referenced by osmscout::MapService::AddTileDataToMapData(), osmscout::Database::GetAreaAreaIndex(), osmscout::Database::GetAreaByOffset(), osmscout::Database::GetAreaDataFile(), osmscout::Database::GetAreaNodeIndex(), osmscout::Database::GetAreaRouteIndex(), osmscout::OptimizeAreasLowZoom::GetAreas(), osmscout::AreaAreaIndex::GetAreasInArea(), osmscout::Database::GetAreaWayIndex(), osmscout::Database::GetBoundingBoxDataFile(), osmscout::Database::GetLocationIndex(), osmscout::Database::GetNodeByOffset(), osmscout::Database::GetNodeDataFile(), osmscout::Database::GetNodesByOffset(), osmscout::AreaIndex::GetOffsets(), osmscout::AreaNodeIndex::GetOffsets(), osmscout::Database::GetOptimizeAreasLowZoom(), osmscout::Database::GetOptimizeWaysLowZoom(), osmscout::Database::GetRouteDataFile(), osmscout::Database::GetSRTMIndex(), osmscout::BasemapDatabase::GetWaterIndex(), osmscout::Database::GetWaterIndex(), osmscout::Database::GetWayByOffset(), osmscout::Database::GetWayDataFile(), osmscout::OptimizeWaysLowZoom::GetWays(), osmscout::StyleConfig::Load(), osmscout::TypeConfig::LoadFromDataFile(), osmscout::NavigationModule::loadRoutableObjects(), osmscout::Logger::Line::operator<<(), osmscout::RoutePostprocessor::POIsPostprocessor::Process(), osmscout::SearchForAddressForLocation(), osmscout::LocationService::SearchForLocationByString(), and osmscout::SearchForLocationForRegion().
void osmscout::StopClock::Stop | ( | ) |
Referenced by osmscout::MapService::AddTileDataToMapData(), osmscout::AbstractRoutingService< MultiDBRoutingState >::CalculateRoute(), osmscout::Database::GetAreaAreaIndex(), osmscout::Database::GetAreaByOffset(), osmscout::Database::GetAreaDataFile(), osmscout::Database::GetAreaNodeIndex(), osmscout::Database::GetAreaRouteIndex(), osmscout::OptimizeAreasLowZoom::GetAreas(), osmscout::AreaAreaIndex::GetAreasInArea(), osmscout::Database::GetAreaWayIndex(), osmscout::Database::GetBoundingBoxDataFile(), osmscout::MapService::GetGroundTiles(), osmscout::Database::GetLocationIndex(), osmscout::Database::GetNodeByOffset(), osmscout::Database::GetNodeDataFile(), osmscout::Database::GetNodesByOffset(), osmscout::AreaIndex::GetOffsets(), osmscout::AreaNodeIndex::GetOffsets(), osmscout::Database::GetOptimizeAreasLowZoom(), osmscout::Database::GetOptimizeWaysLowZoom(), osmscout::Database::GetRouteDataFile(), osmscout::MapService::GetSRTMData(), osmscout::Database::GetSRTMIndex(), osmscout::BasemapDatabase::GetWaterIndex(), osmscout::Database::GetWaterIndex(), osmscout::Database::GetWayDataFile(), osmscout::OptimizeWaysLowZoom::GetWays(), osmscout::StyleConfig::Load(), osmscout::TypeConfig::LoadFromDataFile(), osmscout::NavigationModule::loadRoutableObjects(), osmscout::MapService::LookupTile(), osmscout::MapService::LookupTiles(), osmscout::RoutePostprocessor::POIsPostprocessor::Process(), osmscout::SearchForAddressForLocation(), osmscout::LocationService::SearchForLocationByString(), and osmscout::SearchForLocationForRegion().
|
friend |