From 2db5ddec5f45871f52c9fecd50ed4dd1fccc43de Mon Sep 17 00:00:00 2001 From: Seyed Ali Ghasemi Date: Mon, 22 Apr 2024 10:06:02 +0200 Subject: [PATCH] Update README.md --- README.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1aa80ad..f5e2dd1 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,6 @@ fortime = {git="https://github.com/gha3mi/fortime.git"} ### Measuring elapsed time (system_clock) -To measure the elapsed wall-clock time, use the following: - ```fortran use fortime type(timer) :: t @@ -37,8 +35,6 @@ call t%timer_write(file_name) ! Optionally, write the result to a file ### Measuring elapsed time (date_and_time) -To measure the elapsed wall-clock time, use the following: - ```fortran use fortime type(timer) :: t @@ -52,8 +48,6 @@ call t%dtimer_write(file_name) ! Optionally, write the result to a file ### Measuring CPU time (cpu_time) -To measure the CPU time consumed by your code, use these functions: - ```fortran use fortime type(timer) :: t @@ -67,8 +61,6 @@ call t%ctimer_write(file_name) ! Optionally, write the result to a file ### Measuring OpenMP time (omp_get_wtime) -If your code includes OpenMP parallelization, you can measure the time taken by the parallel regions using: - ```fortran use fortime type(timer) :: t @@ -80,12 +72,10 @@ call t%otimer_stop(nloops, message, print) ! nloops, message and print are optio call t%otimer_write(file_name) ! Optionally, write the result to a file ``` -**Note:** Ensure you compile with the `-DUSE_OMP` option when using the OpenMP timer. +**Note:** Compile with the `-DUSE_OMP` option when using the OpenMP timer. ### Measuring MPI time (mpi_wtime) -When using MPI (Message Passing Interface), you can measure the time taken by your MPI processes using: - ```fortran use fortime type(timer) :: t @@ -97,7 +87,7 @@ call t%mtimer_stop(nloops, message, print) ! nloops, message and print are optio call t%mtimer_write(file_name) ! Optionally, write the result to a file ``` -**Note:** Don't forget to compile with the `-DUSE_MPI` option when using the MPI timer. +**Note:** Compile with the `-DUSE_MPI` option when using the MPI timer. ## Running Examples and Tests