summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-03 15:55:41 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-10 16:28:59 +0100
commit104720a10bdf154a633a7aa1b9a8b6dc9d4fddc9 (patch)
tree4ec695c12e47181d7c2f215548ff57f0f7616dd2 /src/buildtool/execution_api/remote/bazel/bazel_response.hpp
parenta7613e80f20ff3cef7af347cbed127ad0bb3f86d (diff)
downloadjustbuild-104720a10bdf154a633a7aa1b9a8b6dc9d4fddc9.tar.gz
execution response interface: include execution duration
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_response.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
index e51bd46a..b24763e0 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
@@ -59,6 +59,10 @@ class BazelResponse final : public IExecutionResponse {
return output_.cached_result;
};
+ auto ExecutionDuration() noexcept -> double final {
+ return output_.duration;
+ };
+
auto ActionDigest() const noexcept -> std::string const& final {
return action_id_;
}