This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new ff5fff9215b [v3-2-test] Use monotonic clock for prek command timing 
(#65481) (#65484)
ff5fff9215b is described below

commit ff5fff9215b196a0c67d3c09ddf3adda161c1a21
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Apr 19 10:36:54 2026 +0200

    [v3-2-test] Use monotonic clock for prek command timing (#65481) (#65484)
    
    (cherry picked from commit 5709502ecc2e2452ba59449f4a748a7aad8d0d5c)
    
    Co-authored-by: Henry Chen <[email protected]>
---
 scripts/ci/prek/common_prek_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ci/prek/common_prek_utils.py 
b/scripts/ci/prek/common_prek_utils.py
index 3559e523cf0..d7a4fe9b5d2 100644
--- a/scripts/ci/prek/common_prek_utils.py
+++ b/scripts/ci/prek/common_prek_utils.py
@@ -91,9 +91,9 @@ def run_command(*args, **kwargs) -> None:
         print("#" * min(len(text), 200), file=sys.stderr)
         print(text, file=sys.stderr)
         print("#" * min(len(text), 200), file=sys.stderr)
-    time_start = time.time()
+    time_start = time.monotonic()
     subprocess.check_call(*args, **kwargs)
-    time_end = time.time()
+    time_end = time.monotonic()
     if console:
         console.print(f"[green]After {text}[/]")
         console.print(f"[green]Command finished in {time_end - time_start:.2f} 
seconds[/]")

Reply via email to