LLVM 17.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.

Classes

struct  llvm::format_provider< sys::TimePoint<> >
 Format provider for TimePoint<> More...
 
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...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::sys
 
namespace  llvm::detail
 

Typedefs

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.
 

Functions

std::time_t llvm::sys::toTimeT (TimePoint<> TP)
 Convert a TimePoint 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)