Older gcc doesn't provide operator<< for std::chrono::duration

This commit is contained in:
Robert Bendun 2022-12-18 20:05:03 +01:00
parent d4ef97c0c2
commit dd50882b20

View File

@ -1125,7 +1125,9 @@ static Result<Value> builtin_start(Interpreter &interpreter, std::span<Ast> args
auto end = std::chrono::steady_clock::now();
std::cout << "Start took " << std::chrono::duration_cast<std::chrono::duration<float>>(end - begin) << "s" << std::endl;
std::cout << "Start took "
<< std::chrono::duration_cast<std::chrono::duration<float>>(end - begin).count()
<< "s" << std::endl;
return ret;
}