test19 Program

Uses

  • program~~test19~~UsesGraph program~test19 test19 forunittest forunittest program~test19->forunittest module~fortime fortime program~test19->module~fortime iso_fortran_env iso_fortran_env module~fortime->iso_fortran_env

Source Code

program test19

   use fortime, only: timer
   use forunittest, only: unit_test, rk

   implicit none

#if defined(USE_OMP)
   type(timer) :: t
   type(unit_test) :: ut


   ! OMP time
   call t%otimer_start()
      call sleep(1) ! Perform operations here
   call t%otimer_stop(print=.false.)

   call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test19')
#endif

end program test19