21void Wait(units::second_t seconds);
60 units::second_t
Get()
const;
142 units::second_t m_startTime = 0_s;
143 units::second_t m_accumulatedTime = 0_s;
144 bool m_running =
false;
A timer class.
Definition: Timer.h:36
void Restart()
Restart the timer by stopping the timer, if it is not already stopped, resetting the accumulated time...
static units::second_t GetFPGATimestamp()
Return the FPGA system clock time in seconds.
bool AdvanceIfElapsed(units::second_t period)
Check if the period specified has passed and if it has, advance the start time by that period.
Timer()
Create a new timer object.
units::second_t Get() const
Get the current time from the timer.
bool HasElapsed(units::second_t period) const
Check if the period specified has passed.
void Reset()
Reset the timer by setting the time to 0.
static units::second_t GetMatchTime()
Return the approximate match time.
Timer & operator=(Timer &&)=default
Timer(const Timer &)=default
void Start()
Start the timer running.
Timer & operator=(const Timer &)=default
void Stop()
Stop the timer.
Definition: AprilTagPoseEstimator.h:15
void Wait(units::second_t seconds)
Pause the task for a specified time.
units::second_t GetTime()
Gives real-time clock system time with nanosecond resolution.