MCPcopy Create free account
hub / github.com/LemLib/LemLib / getTimeSet

Method getTimeSet

src/lemlib/timer.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11uint32_t Timer::getTimeSet() {
12 const uint32_t time = pros::millis(); // get time from RTOS
13 if (!paused) timeWaited += time - lastTime; // don't update if paused
14 lastTime = time; // update last time
15 return period;
16}
17
18uint32_t Timer::getTimeLeft() {
19 const uint32_t time = pros::millis(); // get time from RTOS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected