Skip to content

Commit

Permalink
revert stopwatch back
Browse files Browse the repository at this point in the history
Signed-off-by: Aramis Sennyey <[email protected]>
  • Loading branch information
aramissennyeydd committed Jan 3, 2025
1 parent 452be87 commit 4171584
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,21 @@ export class OperationExecutionRecord implements IOperationRunnerContext, IOpera
? OperationStatus.NoOp
: OperationStatus.Skipped;
}
// Make sure that the stopwatch is stopped before reporting the result, otherwise endTime is undefined.
this.stopwatch.stop();
// Delegate global state reporting
await onResult(this);
} catch (error) {
this.status = OperationStatus.Failure;
this.error = error;
// Make sure that the stopwatch is stopped before reporting the result, otherwise endTime is undefined.
this.stopwatch.stop();
// Delegate global state reporting
await onResult(this);
} finally {
if (this.isTerminal) {
this._collatedWriter?.close();
this.stdioSummarizer.close();
this.stopwatch.stop();
}
}
}
Expand Down

0 comments on commit 4171584

Please sign in to comment.