libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::StopClock Class Referencefinal

#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...
 
StopClockoperator= (const StopClock &)=delete
 
StopClockoperator= (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)
 

Detailed Description

Simple stop clock implementation.

Constructor & Destructor Documentation

◆ StopClock() [1/3]

osmscout::StopClock::StopClock ( )

◆ ~StopClock()

osmscout::StopClock::~StopClock ( )
default

◆ StopClock() [2/3]

osmscout::StopClock::StopClock ( const StopClock )
delete

◆ StopClock() [3/3]

osmscout::StopClock::StopClock ( StopClock &&  )
default

Member Function Documentation

◆ GetDuration()

std::chrono::steady_clock::duration osmscout::StopClock::GetDuration ( ) const

◆ GetMilliseconds()

◆ IsSignificant()

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.

Returns
true if significant, else false

References GetMilliseconds().

◆ operator=() [1/2]

StopClock& osmscout::StopClock::operator= ( const StopClock )
delete

◆ operator=() [2/2]

StopClock& osmscout::StopClock::operator= ( StopClock &&  )
default

◆ ResultString()

◆ Stop()

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().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const StopClock stopClock 
)
friend

The documentation for this class was generated from the following files: