Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static std::string timePointAsString(const std::chrono::system_clock::time_point& tp)
- {
- std::time_t t = std::chrono::system_clock::to_time_t(tp);
- std::string ts = std::ctime(&t);
- ts.resize(ts.size() - 1);
- return ts;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement