Menu

PMTM_set_sample_mode

Iain Miller

PMTM_set_sample_mode

Fortran:

:::fortran
subroutine PMTM_set_sample_mode(timer, frequency, max_samples , err_code)

Set the sample mode of the timer. This allows the setting of how often the timer should sample and whether it should stop sampling after a given number of measurements.

:::fortran
    type(PMTM_timer), intent(in)::timer

The handle of the timer to modify.

:::fortran
    integer, intent(in)::frequency

The sample frequency to set on the timer.

:::fortran
    integer, intent(in)::max_samples

The maximum number of samples for a timer to make or PMTM_NO_MAX to unset a maximum.

:::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_set_sample_mode(PMTM_timer_t timer, int frequency, int max_samples)

Related

Wiki: PMTM Constants
Wiki: PMTM

MongoDB Logo MongoDB