mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Timer reports a negative duration if the sim timing is restarted. This can be worked around by calling Reset(). Other options included: 1. Have RestartTiming() call Timer::Reset() on a list of instantiated Timers. 2. Have Timer::Get() reset the timer if it notices time went backwards. This requires dropping const qualification though, which is a breaking change that only fixes a minor edge case. Closes #2732.