tic Subroutine

public subroutine tic(start_time)

Subroutine to start a wall clock timer.

tic() starts the wall clock timer. The subroutines records the wall clock time at execution of this command. Use toc(message) to log the elapsed time since the last call of tic().

Warning

As tic() and toc(message) rely on a module variable, they are not thread safe.

tic(start_time) writes the value of the wall clock time at execution of this command to start_time. Calling this command, shall not change the module variable associated with calling tic().

Arguments

Type IntentOptional Attributes Name
integer, intent(out), optional :: start_time

Optional output for the start time. If not present the time is written to a module variable.