MCPcopy Create free account
hub / github.com/comaps/comaps / GetCurrentTimeToSegmentSec

Method GetCurrentTimeToSegmentSec

libs/routing/route.cpp:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156double Route::GetCurrentTimeToSegmentSec(size_t segIdx) const
157{
158 if (!IsValid())
159 return 0.0;
160
161 double const endTimeSec = m_routeSegments[segIdx].GetTimeFromBeginningSec();
162 double const passedTimeSec = GetCurrentTimeFromBeginSec();
163
164 return endTimeSec - passedTimeSec;
165}
166
167void Route::GetCurrentSpeedLimit(SpeedInUnits & speedLimit) const
168{

Callers 1

GetRouteFollowingInfoMethod · 0.80

Calls 2

IsValidFunction · 0.50

Tested by

no test coverage detected