MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / hasTimeElapsed

Function hasTimeElapsed

Tactility/Source/service/gps/GpsService.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14extern const ServiceManifest manifest;
15
16constexpr bool hasTimeElapsed(TickType_t now, TickType_t timeInThePast, TickType_t expireTimeInTicks) {
17 return (now - timeInThePast) >= expireTimeInTicks;
18}
19
20GpsService::GpsDeviceRecord* GpsService::findGpsRecord(const std::shared_ptr<GpsDevice>& device) {
21 auto lock = mutex.asScopedLock();

Callers 2

hasCoordinatesMethod · 0.70
getGgaMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected