10 #include <wpi/deprecated.h>
11 #include <wpi/mutex.h>
17 using TimerInterruptHandler = void (*)(
void* param);
29 void Wait(
double seconds);
38 WPI_DEPRECATED(
"Use Timer::GetFPGATimestamp() instead.")
67 virtual ~Timer() =
default;
69 Timer(Timer&&) =
default;
70 Timer& operator=(Timer&&) =
default;
114 bool HasPeriodPassed(
double period);
124 static double GetFPGATimestamp();
141 static double GetMatchTime();
144 static const double kRolloverTime;
147 double m_startTime = 0.0;
148 double m_accumulatedTime = 0.0;
149 bool m_running =
false;
150 mutable wpi::mutex m_mutex;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
double GetTime()
Gives real-time clock system time with nanosecond resolution.
Timer objects measure accumulated time in seconds.
Definition: Timer.h:57
void Wait(double seconds)
Pause the task for a specified time.
double GetClock()
Return the FPGA system clock time in seconds.