From 84d13eacbda42c37b51ff6082ce705a4c868eb4c Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Sun, 21 May 2023 12:15:00 +0530 Subject: Count post-cargo build steps in elapsed time --- python/servo/build_commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/servo') diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 45dcef9ceec..b65321cb5d3 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -557,8 +557,6 @@ class MachCommands(CommandBase): features=features, **kwargs ) - elapsed = time() - build_start - # Do some additional things if the build succeeded if status == 0: if android and not no_package: @@ -656,6 +654,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value + elapsed = time() - build_start elapsed_delta = datetime.timedelta(seconds=int(elapsed)) build_message = f"{'Succeeded' if status == 0 else 'Failed'} in {elapsed_delta}" self.notify("Servo build", build_message) -- cgit v1.2.3