15 using std::chrono::system_clock;
27 stream << getTimeStamp();
33 time_t tClockTime = system_clock::to_time_t( system_clock::now() );
37 writer <<
'[' << fmt::pad( tTime.tm_mon + 1, 2,
'0' ) <<
'/' << fmt::pad( tTime.tm_mday, 2,
'0' )
38 <<
' ' << fmt::pad( tTime.tm_hour, 2,
'0' ) <<
':' << fmt::pad( tTime.tm_min, 2,
'0' )
39 <<
':' << fmt::pad( tTime.tm_sec, 2,
'0' ) <<
"] ";
std::tm localtime(const std::time_t &t)
threadsafe version of localtime
static std::string getTimeStamp()
static void addTimeStamp(std::ostream &stream)