Const-qualify frc2::Timer::HasElapsed() (#2397)

This commit is contained in:
Tyler Veness
2020-02-29 20:12:31 -08:00
committed by GitHub
parent 05a26b7279
commit b6c163acd7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);