summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/common')
-rw-r--r--src/buildtool/execution_api/common/execution_response.hpp4
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;