mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[wpilib] Add Timer::Restart() (#4963)
This commit is contained in:
@@ -76,6 +76,14 @@ class Timer {
|
||||
*/
|
||||
void Start();
|
||||
|
||||
/**
|
||||
* Restart the timer by stopping the timer, if it is not already stopped,
|
||||
* resetting the accumulated time, then starting the timer again. If you
|
||||
* want an event to periodically reoccur at some time interval from the
|
||||
* start time, consider using AdvanceIfElapsed() instead.
|
||||
*/
|
||||
void Restart();
|
||||
|
||||
/**
|
||||
* Stop the timer.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user