35 std::time_t t = std::chrono::system_clock::to_time_t(
m_tp);
36 std::string str = std::ctime(&t);
38 return str.substr(0, str.length() - 1);
45 auto now = std::chrono::system_clock::now();
46 auto in_time_t = std::chrono::system_clock::to_time_t(now);
48 ss << std::put_time(std::localtime(&in_time_t),
"%Y-%m-%d-%X");
std::string ToString() const
Returns string with the time stamp after eliminating newline.
TimeStamp()
Constructor marks the current time for the time stamp.
Namespace for the simulator and related classes.
std::string ToTag() const
Returns string with the time stamp after eliminating newline.
std::chrono::system_clock::time_point m_tp