fix compiler errors in old g++

This commit is contained in:
falsycat 2022-11-24 13:04:08 +09:00
parent 9b2ea8703e
commit 6bca7d7909

View File

@ -29,7 +29,7 @@ class Stopwatch final {
nf7::Env::Time begin_;
};
inline std::ostream& operator << (std::ostream& out, const Stopwatch& sw) {
return out << std::chrono::duration_cast<std::chrono::microseconds>(sw.dur());
return out << std::chrono::duration_cast<std::chrono::microseconds>(sw.dur()).count() << " usecs";
}
struct Stopwatch::Benchmark final {