toc Subroutine

public subroutine toc(message, start_time, level)

Subroutine to end a wall clock timer.

toc(message) logs the elapsed wall clock time in seconds since the most recent call to tic() along with message as a debug message.

toc(message, start_time) logs the elapsed wall clock time in seconds since the call of tic(start_time), along with message.

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: message

Message to log along elapsed time.

integer, intent(in), optional :: start_time

Optional starting time. If not present the time recorded in the module variable is used.

character(len=*), intent(in), optional :: level

The level (severity) of the message, default is "debug".


Contents

None