In some place I already get the epoch time value like this:
int64_t timeSeconds = std::chrono::duration_cast<std::chrono::seconds>(m_startTime.time_since_epoch()).count()
But how to convert this back to "std::chrono::system_clock::time_point"
c++c++11
In some place I already get the epoch time value like this:
int64_t timeSeconds = std::chrono::duration_cast<std::chrono::seconds>(m_startTime.time_since_epoch()).count()
But how to convert this back to "std::chrono::system_clock::time_point"
Best Answer
seconds
and then turn thisduration
into atime_point
.