12 lines
363 B
C++
12 lines
363 B
C++
|
#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
|