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

Function IsLevelExpired

libs/platform/battery_tracker.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7auto const kBatteryTrackingInterval = std::chrono::minutes(10);
8
9bool IsLevelExpired(std::chrono::system_clock::time_point lastRequestTime)
10{
11 return std::chrono::system_clock::now() - lastRequestTime > kBatteryTrackingInterval;
12}
13} // namespace
14
15namespace platform

Callers 2

SubscribeMethod · 0.85
RequestBatteryLevelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected