timer_obj_GetTiming Function

private pure function timer_obj_GetTiming(this, name) result(res)

Returns timing information for data given by name.

Type Bound

timer_obj

Arguments

Type IntentOptional Attributes Name
class(timer_obj), intent(in) :: this

Timer

character(len=*), intent(in) :: name

Name of timing data

Return Value real(kind=wp)

Timing


Calls

proc~~timer_obj_gettiming~~CallsGraph proc~timer_obj_gettiming timer_obj%timer_obj_GetTiming none~get~3 hashtbl_obj%Get proc~timer_obj_gettiming->none~get~3 proc~hashtbl_obj_hashstring hashtbl_obj%hashtbl_obj_HashString proc~timer_obj_gettiming->proc~hashtbl_obj_hashstring proc~hashtbl_obj_get_int4 hashtbl_obj%hashtbl_obj_Get_int4 none~get~3->proc~hashtbl_obj_get_int4 proc~hashtbl_obj_get_int8 hashtbl_obj%hashtbl_obj_Get_int8 none~get~3->proc~hashtbl_obj_get_int8 proc~hashtbl_obj_get_real_dp hashtbl_obj%hashtbl_obj_Get_real_dp none~get~3->proc~hashtbl_obj_get_real_dp proc~hashtbl_obj_get_real_sp hashtbl_obj%hashtbl_obj_Get_real_sp none~get~3->proc~hashtbl_obj_get_real_sp none~get~2 sllist_obj%Get proc~hashtbl_obj_get_int4->none~get~2 proc~hashtbl_obj_get_int8->none~get~2 proc~hashtbl_obj_get_real_dp->none~get~2 proc~hashtbl_obj_get_real_sp->none~get~2 proc~sllist_obj_get_int4 sllist_obj%sllist_obj_Get_int4 none~get~2->proc~sllist_obj_get_int4 proc~sllist_obj_get_int8 sllist_obj%sllist_obj_Get_int8 none~get~2->proc~sllist_obj_get_int8 proc~sllist_obj_get_real_dp sllist_obj%sllist_obj_Get_real_dp none~get~2->proc~sllist_obj_get_real_dp proc~sllist_obj_get_real_sp sllist_obj%sllist_obj_Get_real_sp none~get~2->proc~sllist_obj_get_real_sp proc~sllist_obj_get_int4->proc~sllist_obj_get_int4 proc~sllist_obj_get_int8->proc~sllist_obj_get_int8 proc~sllist_obj_get_real_dp->proc~sllist_obj_get_real_dp proc~sllist_obj_get_real_sp->proc~sllist_obj_get_real_sp

Called by

proc~~timer_obj_gettiming~~CalledByGraph proc~timer_obj_gettiming timer_obj%timer_obj_GetTiming proc~cdifs_obj_monitor cdifs_obj_Monitor proc~cdifs_obj_monitor->proc~timer_obj_gettiming proc~grans_obj_monitor grans_obj_monitor proc~grans_obj_monitor->proc~timer_obj_gettiming interface~cdifs_obj_monitor cdifs_obj%cdifs_obj_Monitor interface~cdifs_obj_monitor->proc~cdifs_obj_monitor interface~grans_obj_monitor grans_obj%grans_obj_Monitor interface~grans_obj_monitor->proc~grans_obj_monitor proc~cdifs_obj_preparesolver cdifs_obj_PrepareSolver proc~cdifs_obj_preparesolver->interface~cdifs_obj_monitor proc~grans_obj_preparesolver grans_obj_PrepareSolver proc~grans_obj_preparesolver->interface~grans_obj_monitor interface~cdifs_obj_preparesolver cdifs_obj%cdifs_obj_PrepareSolver interface~cdifs_obj_preparesolver->proc~cdifs_obj_preparesolver interface~grans_obj_preparesolver grans_obj%grans_obj_PrepareSolver interface~grans_obj_preparesolver->proc~grans_obj_preparesolver

Source Code

    pure function timer_obj_GetTiming(this,name) result(res)
      !> Returns timing information for data given by name.
      implicit none
      class(timer_obj), intent(in) :: this                                     !! Timer
      character(len=*), intent(in) :: name                                     !! Name of timing data
      real(wp)                     :: res                                      !! Timing
      ! Work variables
      integer :: idx

      ! Get index from hash table
      call this%tbl%Get(key=this%tbl%HashString(name),val=idx)

      ! Return timing info
      res = this%timing(idx)

      return
    end function timer_obj_GetTiming