10#include <units/time.h>
63 return (
GetCurrentTime() - frc::Timer::GetFPGATimestamp()) + fpgaTime;
76 return (frc::Timer::GetTimestamp() -
GetCurrentTime()) + currentTime;
78 return (frc::Timer::GetFPGATimestamp() -
GetCurrentTime()) + currentTime;
units::second_t CurrentTimeToFPGATime(units::second_t currentTime)
Converts a timestamp in the timebase reported by GetCurrentTime() to an FPGA timestamp.
Definition Utils.hpp:73
units::second_t GetSystemTime()
Get the system timestamp.
Definition Utils.hpp:46
CTREXPORT double GetSystemTimeSeconds()
Get the system timestamp in seconds.
CTREXPORT double GetCurrentTimeSeconds()
Get the current timestamp in seconds.
CTREXPORT bool IsReplay()
Get whether the program is running in replay mode.
units::second_t GetCurrentTime()
Get the current timestamp.
Definition Utils.hpp:29
units::second_t FPGAToCurrentTime(units::second_t fpgaTime)
Converts an FPGA timestamp to the timebase reported by GetCurrentTime().
Definition Utils.hpp:58
Definition motor_constants.h:14