| 9 | } |
| 10 | |
| 11 | uint32_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 | |
| 18 | uint32_t Timer::getTimeLeft() { |
| 19 | const uint32_t time = pros::millis(); // get time from RTOS |
nothing calls this directly
no outgoing calls
no test coverage detected