[wpilib] Add Timer.isRunning() method (#7220)

This commit is contained in:
Étienne Beaulac
2024-10-17 20:03:40 -04:00
committed by GitHub
parent 0424e5ba36
commit 796dbd3b86
5 changed files with 28 additions and 0 deletions

View File

@@ -111,6 +111,13 @@ class Timer {
*/
bool AdvanceIfElapsed(units::second_t period);
/**
* Whether the timer is currently running.
*
* @return true if running.
*/
bool IsRunning() const;
/**
* Return the FPGA system clock time in seconds.
*