timer_stop Subroutine

public subroutine timer_stop(t)

Stop the timer and accumulate elapsed counts.

Handles @p system_clock counter wrap-around: if the current count is less than @p count_start (wrap occurred), the elapsed counts are computed using the counter maximum returned by @p system_clock.

Arguments

Type IntentOptional Attributes Name
type(timer_t), intent(inout) :: t

Timer to stop.