Small optimization for stringifying chrono::time_point

This commit is contained in:
Martin Hořeňovský committed 2021-05-18 00:17:34 +02:00
1 parent 4cc247cc70
commit f50a06affa
1 file changed
+1 -1
+1 -1
View File
@@ -625,7 +625,7 @@ struct ratio_string<std::milli> {
#else
std::strftime(timeStamp, timeStampSize, fmt, timeInfo);
#endif
return std::string(timeStamp);
return std::string(timeStamp, timeStampSize - 1);
}
};
}