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()
.
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()
.
Type | Intent | Optional | 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. |