11 #include "llvm/Config/config.h"
21 std::time_t OurTime =
toTimeT(TP);
23 #if defined(LLVM_ON_UNIX)
24 struct tm *
LT = ::localtime_r(&OurTime, &Storage);
28 #if defined(LLVM_ON_WIN32)
29 int Error = ::localtime_s(&Storage, &OurTime);
39 char Buffer[
sizeof(
"YYYY-MM-DD HH:MM:SS")];
40 strftime(Buffer,
sizeof(Buffer),
"%Y-%m-%d %H:%M:%S", <);
41 return OS << Buffer <<
'.'
43 long((TP.time_since_epoch() % std::chrono::seconds(1))
LLVM_ATTRIBUTE_ALWAYS_INLINE std::time_t toTimeT(TimePoint<> TP)
Convert a TimePoint to std::time_t.
static struct tm getStructTM(TimePoint<> TP)
auto count(R &&Range, const E &Element) -> typename std::iterator_traits< decltype(std::begin(Range))>::difference_type
Wrapper function around std::count to count the number of times an element Element occurs in the give...
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
std::chrono::time_point< std::chrono::system_clock, D > TimePoint
A time point on the system clock.