mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Add frc2::Timer (#1968)
This is a unit-safe version of frc::Timer. Undo previous (#1815) deprecation of parts of frc::Timer.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "CommandBase.h"
|
||||
#include "CommandHelper.h"
|
||||
#include "frc/Timer.h"
|
||||
#include "frc2/Timer.h"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
@@ -43,7 +43,7 @@ class WaitCommand : public CommandHelper<CommandBase, WaitCommand> {
|
||||
bool RunsWhenDisabled() const override;
|
||||
|
||||
protected:
|
||||
frc::Timer m_timer;
|
||||
Timer m_timer;
|
||||
|
||||
private:
|
||||
units::second_t m_duration;
|
||||
|
||||
Reference in New Issue
Block a user