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/common/execution_response.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buildtool/execution_api/common/execution_response.hpp') diff --git a/src/buildtool/execution_api/common/execution_response.hpp b/src/buildtool/execution_api/common/execution_response.hpp index 6b313874..9899584f 100644 --- a/src/buildtool/execution_api/common/execution_response.hpp +++ b/src/buildtool/execution_api/common/execution_response.hpp @@ -58,6 +58,10 @@ class IExecutionResponse { [[nodiscard]] virtual auto StdOut() noexcept -> std::string = 0; + // Duration of the actual action execution, in seconds. The value may + // be 0 if the action was taken from cache. + [[nodiscard]] virtual auto ExecutionDuration() noexcept -> double = 0; + [[nodiscard]] virtual auto ActionDigest() const noexcept -> std::string const& = 0; -- cgit v1.2.3