Small optimization for stringifying chrono::time_point

This commit is contained in:
Martin Hořeňovský 2021-05-17 13:09:05 +02:00
parent 4cc247cc70
commit f50a06affa
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -625,7 +625,7 @@ struct ratio_string<std::milli> {
#else #else
std::strftime(timeStamp, timeStampSize, fmt, timeInfo); std::strftime(timeStamp, timeStampSize, fmt, timeInfo);
#endif #endif
return std::string(timeStamp); return std::string(timeStamp, timeStampSize - 1);
} }
}; };
} }