21 using namespace llvm::sys;
29 GetSystemTimeAsFileTime(reinterpret_cast<FILETIME *>(&ft));
43 LT = ::localtime(&OurTime);
48 int Error = ::_localtime64_s(&Storage, &OurTime);
54 char Buffer[
sizeof(
"YYYY-MM-DD HH:MM:SS")];
55 strftime(Buffer,
sizeof(Buffer),
"%Y-%m-%d %H:%M:%S", LT);
57 OS <<
format(
"%s.%.9u", static_cast<const char *>(Buffer),
std::string str() const
Provides conversion of the TimeValue into a readable time & date.
static TimeValue now()
This is a static constructor that returns a TimeValue that represents the current time...
NanoSecondsType nanoseconds() const
Returns only the nanoseconds component of the TimeValue.
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
uint64_t toEpochTime() const
Converts the TimeValue into the corresponding number of seconds since the epoch (00:00:00 Jan 1...
A raw_ostream that writes to an std::string.
This class is used where a precise fixed point in time is required.