LLVM 19.0.0git
Classes | Namespaces | Typedefs | Functions
Chrono.h File Reference
#include "llvm/Support/Compiler.h"
#include "llvm/Support/FormatProviders.h"
#include <chrono>
#include <ctime>
#include <ratio>

Go to the source code of this file.


class  llvm::sys::UtcClock
struct  llvm::format_provider< sys::TimePoint<> >
 Format provider for TimePoint<> More...
struct  llvm::format_provider< sys::UtcTime< std::chrono::seconds > >
struct  llvm::detail::unit< Period >
struct  llvm::detail::unit< std::ratio< 3600 > >
struct  llvm::detail::unit< std::ratio< 60 > >
struct  llvm::detail::unit< std::ratio< 1 > >
struct  llvm::detail::unit< std::milli >
struct  llvm::detail::unit< std::micro >
struct  llvm::detail::unit< std::nano >
struct  llvm::format_provider< std::chrono::duration< Rep, Period > >
 Implementation of format_provider<T> for duration types. More...


namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::sys
namespace  llvm::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as llvm:all_of, llvm::none_of, etc.


template<typename D = std::chrono::nanoseconds>
using llvm::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 llvm::sys::UtcTime = std::chrono::time_point< UtcClock, D >


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