From 331634fd809a8fe2829f6b691584f20db4de51b9 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 1 Feb 2026 06:48:09 -0500 Subject: [PATCH] Measure install time with monotonic clock instead of system clock (#4198) Using time.time() can be inaccurate if the system clock gets updated in between calls. --- archinstall/scripts/guided.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py index d8c2faac..1815d4e2 100644 --- a/archinstall/scripts/guided.py +++ b/archinstall/scripts/guided.py @@ -57,7 +57,7 @@ def perform_installation( Only requirement is that the block devices are formatted and setup prior to entering this function. """ - start_time = time.time() + start_time = time.monotonic() info('Starting installation...') config = arch_config_handler.config @@ -169,7 +169,7 @@ def perform_installation( debug(f'Disk states after installing:\n{disk_layouts()}') if not arch_config_handler.args.silent: - elapsed_time = time.time() - start_time + elapsed_time = time.monotonic() - start_time action = select_post_installation(elapsed_time) match action: