forked from catchorg/Catch2
Small optimization for stringifying chrono::time_point
This commit is contained in:
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user