Fortran:
:::fortran
subroutine PMTM_destroy_instance(instance , err_code)
Finalises the given PMTM instance, writing any remaining timers to the output file before closing it, and leaving the instance in an uninitialised state.
:::fortran
integer, intent(in)::instance
The handle to the instance.
:::fortran
integer, intent(out)::err_code
Will be set to PMTM_SUCCESS if the call was successful and the appropriate error code if not.
C:
:::C
PMTM_error_t PMTM_destroy_instance(PMTM_instance_t instance)