run_test14 Subroutine

subroutine run_test14(ut)

Arguments

Type IntentOptional Attributes Name
type(unit_test), intent(inout) :: ut

Calls

proc~~run_test14~~CallsGraph proc~run_test14 run_test14 check check proc~run_test14->check proc~timer_start timer%timer_start proc~run_test14->proc~timer_start proc~timer_stop timer%timer_stop proc~run_test14->proc~timer_stop proc~timer_write timer%timer_write proc~run_test14->proc~timer_write proc~finalize_timing finalize_timing proc~timer_stop->proc~finalize_timing proc~ticks_diff ticks_diff proc~timer_stop->proc~ticks_diff proc~write_to_file write_to_file proc~timer_write->proc~write_to_file proc~print_time print_time proc~finalize_timing->proc~print_time colorize colorize proc~print_time->colorize

Called by

proc~~run_test14~~CalledByGraph proc~run_test14 run_test14 program~check check program~check->proc~run_test14

Source Code

   subroutine run_test14(ut)
      type(unit_test), intent(inout) :: ut
      type(timer) :: t
      integer :: nl
      integer, parameter :: nloops = 3

      call t%timer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%timer_stop(nloops = nloops, message = 'Elapsed time:', print=.false.)
      call t%timer_write('test/test14_etimes.txt')

      call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test14')
   end subroutine run_test14