WPILibC++ 2024.3.2
|
Typedefs | |
template<typename D = std::chrono::nanoseconds> | |
using | TimePoint = std::chrono::time_point< std::chrono::system_clock, D > |
A time point on the system clock. More... | |
Functions | |
unsigned char | getSwappedBytes (unsigned char C) |
signed char | getSwappedBytes (signed char C) |
char | getSwappedBytes (char C) |
unsigned short | getSwappedBytes (unsigned short C) |
signed short | getSwappedBytes (signed short C) |
unsigned int | getSwappedBytes (unsigned int C) |
signed int | getSwappedBytes (signed int C) |
unsigned long | getSwappedBytes (unsigned long C) |
signed long | getSwappedBytes (signed long C) |
unsigned long long | getSwappedBytes (unsigned long long C) |
signed long long | getSwappedBytes (signed long long C) |
float | getSwappedBytes (float C) |
double | getSwappedBytes (double C) |
template<typename T > | |
std::enable_if_t< std::is_enum_v< T >, T > | getSwappedBytes (T C) |
template<typename T > | |
void | swapByteOrder (T &Value) |
std::time_t | toTimeT (TimePoint<> TP) |
Convert a TimePoint to std::time_t. More... | |
TimePoint< std::chrono::seconds > | toTimePoint (std::time_t T) |
Convert a std::time_t to a TimePoint. More... | |
TimePoint | toTimePoint (std::time_t T, uint32_t nsec) |
Convert a std::time_t + nanoseconds to a TimePoint. More... | |
template<typename FailT , typename Fun , typename... Args> | |
decltype(auto) | RetryAfterSignal (const FailT &Fail, const Fun &F, const Args &... As) |
Variables | |
constexpr bool | IsBigEndianHost = false |
static const bool | IsLittleEndianHost = !IsBigEndianHost |
using wpi::sys::TimePoint = typedef std::chrono::time_point<std::chrono::system_clock, D> |
A time point on the system clock.
This is provided for two reasons:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Convert a std::time_t to a TimePoint.
|
inline |
Convert a std::time_t + nanoseconds to a TimePoint.
|
inline |
Convert a TimePoint to std::time_t.
|
constexpr |
|
static |