diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-03 15:55:41 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-10 16:28:59 +0100 |
commit | 104720a10bdf154a633a7aa1b9a8b6dc9d4fddc9 (patch) | |
tree | 4ec695c12e47181d7c2f215548ff57f0f7616dd2 /src/buildtool/execution_api/common | |
parent | a7613e80f20ff3cef7af347cbed127ad0bb3f86d (diff) | |
download | justbuild-104720a10bdf154a633a7aa1b9a8b6dc9d4fddc9.tar.gz |
execution response interface: include execution duration
Diffstat (limited to 'src/buildtool/execution_api/common')
-rw-r--r-- | src/buildtool/execution_api/common/execution_response.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |