From 104720a10bdf154a633a7aa1b9a8b6dc9d4fddc9 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 3 Mar 2025 15:55:41 +0100 Subject: execution response interface: include execution duration --- src/buildtool/execution_api/local/local_response.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buildtool/execution_api/local/local_response.hpp') diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp index 60d37ae5..5c0dcd0a 100644 --- a/src/buildtool/execution_api/local/local_response.hpp +++ b/src/buildtool/execution_api/local/local_response.hpp @@ -77,6 +77,10 @@ class LocalResponse final : public IExecutionResponse { } auto IsCached() const noexcept -> bool final { return output_.is_cached; }; + auto ExecutionDuration() noexcept -> double final { + return output_.duration; + } + auto ActionDigest() const noexcept -> std::string const& final { return action_id_; } -- cgit v1.2.3