![]() |
WPILibC++ 2025.3.2
|
Classes | |
| class | UtcClock |
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. | |
| template<typename D = std::chrono::nanoseconds> | |
| using | UtcTime = std::chrono::time_point<UtcClock, D> |
Functions | |
| template<typename FailT , typename Fun , typename... Args> | |
| decltype(auto) | RetryAfterSignal (const FailT &Fail, const Fun &F, const Args &... As) |
| 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) |
| UtcTime< std::chrono::seconds > | toUtcTime (std::time_t T) |
| Convert a std::time_t to a UtcTime. | |
| std::time_t | toTimeT (TimePoint<> TP) |
| Convert a TimePoint to std::time_t. | |
| std::time_t | toTimeT (UtcTime<> TP) |
| Convert a UtcTime to std::time_t. | |
| TimePoint< std::chrono::seconds > | toTimePoint (std::time_t T) |
| Convert a std::time_t to a TimePoint. | |
| TimePoint | toTimePoint (std::time_t T, uint32_t nsec) |
| Convert a std::time_t + nanoseconds to a TimePoint. | |
Variables | |
| constexpr bool | IsBigEndianHost |
| static const bool | IsLittleEndianHost = !IsBigEndianHost |
| using wpi::sys::TimePoint = std::chrono::time_point<std::chrono::system_clock, D> |
A time point on the system clock.
This is provided for two reasons:
| using wpi::sys::UtcTime = std::chrono::time_point<UtcClock, D> |
|
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.
|
inline |
Convert a UtcTime to std::time_t.
|
inline |
Convert a std::time_t to a UtcTime.
|
constexpr |
|
static |