Fixup: start the timer before the phase (#33917)

This commit is contained in:
Harmen Stoppels 2022-11-15 16:52:43 +01:00 committed by GitHub
parent b245f1ece1
commit d1715c5fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2042,9 +2042,8 @@ def _real_install(self):
tty.set_debug(inner_debug_level)
# Catch any errors to report to logging
phase_fn.execute()
self.timer.start(phase_fn.name)
phase_fn.execute()
spack.hooks.on_phase_success(pkg, phase_fn.name, log_file)
self.timer.stop(phase_fn.name)