Genode::log cannot print objects of type std::chrono::*.

This commit is contained in:
Michael Müller
2022-07-04 16:18:51 +02:00
parent 45fef3c8be
commit 33ff8591f0

View File

@@ -24,7 +24,7 @@ class Posix_playground::Chrono_thread {
auto start = std::chrono::steady_clock::now();
std::this_thread::sleep_for(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::milliseconds(_id * 1000)));
auto end = std::chrono::steady_clock::now();
Genode::log("Thread ", _id, " woke up after ", std::chrono::duration_cast<std::chrono::milliseconds>(end - start));
Genode::log("Thread ", _id, " woke up after ", std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count());
}
}
};