mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 17:37:57 +00:00
Small optimization for stringifying chrono::time_point
This commit is contained in:
parent
4cc247cc70
commit
f50a06affa
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue