CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro Namespace Reference

Namespaces

namespace  configs
 
namespace  controls
 
namespace  hardware
 
namespace  networking
 
namespace  signals
 
namespace  sim
 
namespace  spns
 
namespace  wpiutils
 

Classes

class  AllTimestamps
 A collection of timestamps for a received signal. More...
 
class  BaseStatusSignalValue
 
class  ISerializable
 
struct  SignalMeasurement
 
class  StatusSignalValue
 
class  Timestamp
 Information about the timestamp of a signal. More...
 

Functions

CTREXPORT double GetCurrentTimeSeconds ()
 Get the current timestamp in seconds. More...
 
CTREXPORT bool IsSimulation ()
 Get whether the program is running in simulation. More...
 

Function Documentation

◆ GetCurrentTimeSeconds()

CTREXPORT double ctre::phoenixpro::GetCurrentTimeSeconds ( )

Get the current timestamp in seconds.

This will return the current time in seconds, this is the same time that is used in Timestamp.

Returns
Current time in seconds.

◆ IsSimulation()

CTREXPORT bool ctre::phoenixpro::IsSimulation ( )

Get whether the program is running in simulation.

Returns
true if in simulation