CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Functions | |
CTREXPORT double | GetCurrentTimeSeconds () |
Get the current timestamp in seconds. | |
CTREXPORT double | GetSystemTimeSeconds () |
Get the system timestamp in seconds. | |
CTREXPORT bool | IsSimulation () |
Get whether the program is running in simulation. | |
CTREXPORT bool | IsReplay () |
Get whether the program is running in replay mode. | |
units::second_t | GetCurrentTime () |
Get the current timestamp. | |
units::second_t | GetSystemTime () |
Get the system timestamp. | |
units::second_t | FPGAToCurrentTime (units::second_t fpgaTime) |
Converts an FPGA timestamp to the timebase reported by GetCurrentTime(). | |
|
inline |
Converts an FPGA timestamp to the timebase reported by GetCurrentTime().
fpgaTime | The FPGA timestamp |
|
inline |
Get the current timestamp.
This is the time source used for status signals.
This time source is typically continuous and monotonic. However, it may be overridden in simulation to use a non-monotonic, non-continuous source.
CTREXPORT double ctre::phoenix6::utils::GetCurrentTimeSeconds | ( | ) |
Get the current timestamp in seconds.
This is the time source used for status signals.
This time source is typically continuous and monotonic. However, it may be overridden in simulation to use a non-monotonic, non-continuous source.
|
inline |
Get the system timestamp.
This is NOT the time source used for status signals. Use GetCurrentTime instead when working with status signal timing.
This time source is guaranteed to be continuous and monotonic, making it useful for measuring time deltas in a robot program.
CTREXPORT double ctre::phoenix6::utils::GetSystemTimeSeconds | ( | ) |
Get the system timestamp in seconds.
This is NOT the time source used for status signals. Use GetCurrentTimeSeconds instead when working with status signal timing.
This time source is guaranteed to be continuous and monotonic, making it useful for measuring time deltas in a robot program.
CTREXPORT bool ctre::phoenix6::utils::IsReplay | ( | ) |
Get whether the program is running in replay mode.
true
if in replay mode CTREXPORT bool ctre::phoenix6::utils::IsSimulation | ( | ) |
Get whether the program is running in simulation.
true
if in simulation