TimerModule Module

A module to do timings.



Contents


Subroutines

public subroutine RegisterTimer(timer_name)

Register a timer with the timer module. Call this before using that timer.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: timer_name

Name of the timer.

public subroutine StartTimer(timer_name)

Start the clock running for a given timer.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: timer_name

Name of the timer. Must be registered.

public subroutine StopTimer(timer_name)

Stop the clock for a given timer.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: timer_name

Name of the timer. Must be registered.

public subroutine PrintTimer(timer_name)

Print out the elapsed time for a given timer.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: timer_name

Name of the timer. Must be registered.

public subroutine PrintAllTimers()

Print out the elapsed time for each timer on this process.

Arguments

None

public subroutine PrintAllTimersDistributed()

Print out the elapsed time for each timer based on the max value across processes.

Arguments

None