Kylin/Universal/StreamFormat.cpp

12 lines
363 B
C++
Raw Normal View History

2023-07-21 10:47:31 +08:00
#include "StreamFormat.h"
namespace std {
std::ostream &operator<<(std::ostream &stream, const std::chrono::milliseconds &element) {
stream << element.count() << "ms";
return stream;
}
std::ostream &operator<<(std::ostream &stream, const std::chrono::microseconds &element) {
stream << element.count() << "us";
return stream;
}
} // namespace std