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:
Oblarg
2019-10-26 11:21:40 -04:00
committed by Peter Johnson
parent 36ea865edc
commit 73a30182c3
5 changed files with 293 additions and 122 deletions

View File

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