mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Const-qualify frc2::Timer::HasElapsed() (#2397)
This commit is contained in:
@@ -116,7 +116,7 @@ void Timer::Stop() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Timer::HasElapsed(units::second_t period) { return Get() > period; }
|
||||
bool Timer::HasElapsed(units::second_t period) const { return Get() > period; }
|
||||
|
||||
bool Timer::HasPeriodPassed(units::second_t period) {
|
||||
return AdvanceIfElapsed(period);
|
||||
|
||||
Reference in New Issue
Block a user