From 3663779ce0c7fee187d4008987f4e22a200785a9 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 1 Feb 2026 05:07:18 -0500 Subject: [PATCH] Measure install time with monotonic clock instead of system clock 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 d8c2faac5e..1815d4e2b8 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: