run_test26 Subroutine

subroutine run_test26(ut)

Arguments

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

Calls

proc~~run_test26~~CallsGraph proc~run_test26 run_test26 check check proc~run_test26->check proc~dtimer_start timer%dtimer_start proc~run_test26->proc~dtimer_start proc~dtimer_stop timer%dtimer_stop proc~run_test26->proc~dtimer_stop proc~dtimer_write timer%dtimer_write proc~run_test26->proc~dtimer_write proc~epoch_seconds_utc epoch_seconds_utc proc~dtimer_start->proc~epoch_seconds_utc proc~dtimer_stop->proc~epoch_seconds_utc proc~finalize_timing finalize_timing proc~dtimer_stop->proc~finalize_timing proc~write_to_file write_to_file proc~dtimer_write->proc~write_to_file proc~days_from_civil days_from_civil proc~epoch_seconds_utc->proc~days_from_civil proc~print_time print_time proc~finalize_timing->proc~print_time colorize colorize proc~print_time->colorize

Called by

proc~~run_test26~~CalledByGraph proc~run_test26 run_test26 program~check check program~check->proc~run_test26

Source Code

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

      call t%dtimer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%dtimer_stop(nloops = nloops, message = 'Elapsed time:')
      call t%dtimer_write('test/test26_etimes.txt')

      call ut%check(res=t%elapsed_dtime, expected=1.0_rk, tol=1.0e-1_rk, msg='test26')
   end subroutine run_test26