From 03d501db042b1559aed0c9b8754cc5f33108a3d7 Mon Sep 17 00:00:00 2001 From: ianchb Date: Fri, 6 Feb 2026 21:27:41 +0800 Subject: [PATCH] Display the runtime of TwoPunctures --- makefile_and_run.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/makefile_and_run.py b/makefile_and_run.py index 72ded5b..4f00100 100755 --- a/makefile_and_run.py +++ b/makefile_and_run.py @@ -10,7 +10,7 @@ import AMSS_NCKU_Input as input_data import subprocess - +import time ## CPU core binding configuration using taskset ## taskset ensures all child processes inherit the CPU affinity mask ## This forces make and all compiler processes to use only nohz_full cores (4-55, 60-111) @@ -152,7 +152,7 @@ def run_ABE(): ## Run the AMSS-NCKU TwoPuncture program TwoPunctureABE def run_TwoPunctureABE(): - + tp_time1=time.time() print( ) print( " Running the AMSS-NCKU executable file TwoPunctureABE " ) print( ) @@ -179,7 +179,9 @@ def run_TwoPunctureABE(): print( ) print( " The TwoPunctureABE simulation is finished " ) print( ) - + tp_time2=time.time() + et=tp_time2-tp_time1 + print(f"Used time: {et}") return ##################################################################