10 #include <support/deprecated.h> 11 #include <support/mutex.h> 17 typedef void (*TimerInterruptHandler)(
void* param);
19 void Wait(
double seconds);
20 WPI_DEPRECATED(
"Use Timer::GetFPGATimestamp() instead.")
36 virtual ~Timer() =
default;
38 Timer(
const Timer&) =
delete;
39 Timer& operator=(
const Timer&) =
delete;
45 bool HasPeriodPassed(
double period);
47 static double GetFPGATimestamp();
48 static double GetMatchTime();
51 static const double kRolloverTime;
54 double m_startTime = 0.0;
55 double m_accumulatedTime = 0.0;
56 bool m_running =
false;
57 mutable wpi::mutex m_mutex;
Definition: RobotController.cpp:14
Timer objects measure accumulated time in seconds.
Definition: Timer.h:33