mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Small optimization for stringifying chrono::time_point
This commit is contained in:
parent
4cc247cc70
commit
f50a06affa
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user