mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Add Timer.isRunning() method (#7220)
This commit is contained in:
@@ -84,6 +84,10 @@ bool Timer::AdvanceIfElapsed(units::second_t period) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Timer::IsRunning() const {
|
||||
return m_running;
|
||||
}
|
||||
|
||||
units::second_t Timer::GetFPGATimestamp() {
|
||||
// FPGA returns the timestamp in microseconds
|
||||
return units::second_t{frc::RobotController::GetFPGATime() * 1.0e-6};
|
||||
|
||||
Reference in New Issue
Block a user