Fortran:
:::fortran
subroutine PMTM_create_timer(group, timer, timer_name, timer_type , err_code)
Creates a timer.
:::fortran
integer, intent(in)::group
The timer group to which this timer will be associated.
:::fortran
type(PMTM_timer), intent(out)::timer
The returned handle to the timer. character(len=*), intent(in)::timer_name The name of the timer.
:::fortran
integer, intent(in)::timer_type
The type of the timer, the options being:
Other timers are being added to give more flexibility.
:::fortran
integer, intent(out)::err_code
Will be set to **PMTM_SUCCESS** if the call was successful and the appropriate error code if not.
OpenMP: Timers running under OpenMP with an instance for each thread should have the same timer_name if they are expected to be associated during finalisation. Also, once created, it is assumed all activities (except output) on a timer will be carried out by a single thread. If this is not the case, serialisation should be applied as no protection is provided by the PMTM library.
C:
:::C
PMTM_error_t PMTM_create_timer(PMTM_timer_group_t group, PMTM_timer_t * timer, const char * timer_name, PMTM_timer_type_t timer_type)