1 #ifndef UTIL_CLOCK_MAN_TIMESTAMP_H_INCLUDED
2 #define UTIL_CLOCK_MAN_TIMESTAMP_H_INCLUDED
46 std::time_t t = std::chrono::system_clock::to_time_t(m_tp);
47 std::string str = std::ctime(&t);
48 str[str.length() - 1] =
' ';
55 return std::chrono::system_clock::to_time_t(m_tp);
59 std::chrono::system_clock::time_point m_tp;
73 #endif // include guard
TimeStamp()
Constructor marks the time for the time stamp.
Namespace for the core simulator.
std::time_t ToTimeT() const
Returns time stamp as a time_t.
Provides wall-clock time stamp using the time call.
std::ostream & operator<<(std::ostream &os, CumulativeRecords< std::chrono::nanoseconds > const &dr)
Nicely formated output with nanoseconds.
std::string ToString() const
Returns string with the time stamp after eliminating newline.