WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
Chrono.h File Reference
#include "wpi/Compiler.h"
#include <chrono>
#include <ctime>
#include <ratio>

Go to the source code of this file.

Classes

class  wpi::sys::UtcClock
 

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::sys
 

Typedefs

template<typename D = std::chrono::nanoseconds>
using wpi::sys::TimePoint = std::chrono::time_point<std::chrono::system_clock, D>
 A time point on the system clock.
 
template<typename D = std::chrono::nanoseconds>
using wpi::sys::UtcTime = std::chrono::time_point<UtcClock, D>
 

Functions

UtcTime< std::chrono::seconds > wpi::sys::toUtcTime (std::time_t T)
 Convert a std::time_t to a UtcTime.
 
std::time_t wpi::sys::toTimeT (TimePoint<> TP)
 Convert a TimePoint to std::time_t.
 
std::time_t wpi::sys::toTimeT (UtcTime<> TP)
 Convert a UtcTime to std::time_t.
 
TimePoint< std::chrono::seconds > wpi::sys::toTimePoint (std::time_t T)
 Convert a std::time_t to a TimePoint.
 
TimePoint wpi::sys::toTimePoint (std::time_t T, uint32_t nsec)
 Convert a std::time_t + nanoseconds to a TimePoint.
 
raw_ostreamwpi::operator<< (raw_ostream &OS, sys::TimePoint<> TP)
 
raw_ostreamwpi::operator<< (raw_ostream &OS, sys::UtcTime<> TP)