From dd50882b203273ed4c56d3eb2cca5b8f183bfe6b Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Sun, 18 Dec 2022 20:05:03 +0100 Subject: [PATCH] Older gcc doesn't provide operator<< for std::chrono::duration --- musique/interpreter/builtin_functions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/musique/interpreter/builtin_functions.cc b/musique/interpreter/builtin_functions.cc index 3aed0fc..59811f1 100644 --- a/musique/interpreter/builtin_functions.cc +++ b/musique/interpreter/builtin_functions.cc @@ -1125,7 +1125,9 @@ static Result builtin_start(Interpreter &interpreter, std::span args auto end = std::chrono::steady_clock::now(); - std::cout << "Start took " << std::chrono::duration_cast>(end - begin) << "s" << std::endl; + std::cout << "Start took " + << std::chrono::duration_cast>(end - begin).count() + << "s" << std::endl; return ret; }