Output timing information to stdout
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(timer_list_type), | intent(in) | :: | timers | |||
| integer, | intent(in) | :: | stdout |
subroutine io_print_timings(timers, stdout) !================================================ ! !! Output timing information to stdout ! !================================================ use w90_types, only: timer_list_type implicit none type(timer_list_type), intent(in) :: timers integer, intent(in) :: stdout integer :: i if (timers%overflow) then write (stdout, '(1x,a)') 'Warning: Timer array overflowed, some timing data has been lost' end if write (stdout, '(/1x,a)') '*===========================================================================*' write (stdout, '(1x,a)') '| TIMING INFORMATION |' write (stdout, '(1x,a)') '*===========================================================================*' write (stdout, '(1x,a)') '| Tag Ncalls Time (s)|' write (stdout, '(1x,a)') '|---------------------------------------------------------------------------|' do i = 1, timers%nnames write (stdout, '(1x,"|",a50,":",i10,4x,f10.3,"|")') & timers%clocks(i)%label, timers%clocks(i)%ncalls, timers%clocks(i)%ctime end do write (stdout, '(1x,a)') '*---------------------------------------------------------------------------*' return end subroutine io_print_timings