Fix build duration when build is not finished yet
What does this MR do?
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
What are the relevant issue numbers?
Fixes #19937 (closed).
Does this MR meet the acceptance criteria?
-
No CHANGELOG since it fixes a regression not yet in a stable release (I think) - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together