WPILibC++ 2023.4.3-108-ge5452e3
Chrono.h File Reference
#include "wpi/Compiler.h"
#include <chrono>
#include <ctime>
#include <ratio>

Go to the source code of this file.

Namespaces

namespace  wpi
 
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. More...
 

Functions

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