Write out the timer name and its value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_labeledtimer_type), | intent(in), | optional | :: | me |
timer object |
|
integer, | intent(in) | :: | timerHandle |
timer handle |
name of the timer
pure function tem_getTimerName( me, timerHandle ) result( timerName ) ! -------------------------------------------------------------------- ! !> timer object type(tem_labeledtimer_type), intent(in), optional :: me !> timer handle integer, intent(in) :: timerHandle !> name of the timer character(len=labelLen) :: timerName ! -------------------------------------------------------------------- ! if ( present(me) ) then timerName = trim( me%label%val(timerHandle) ) else timerName = trim( timer%label%val(timerHandle) ) end if end function tem_getTimerName