Subroutine to start a CPU timer.
cputic()
starts the CPU timer. The subroutines records the processor time
at execution of this command. Use cputoc(message)
to log the elapsed time
since the last call of cputic()
.
As cputic()
and cputoc(message)
rely on a module variable, they
are not thread safe.
cputic(start_time)
writes the value of the processor time at execution
of this command to start_time. Calling this command, shall not change
the module variable associated with calling cputic()
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out), | optional | :: | start_time | Optional output for the start time. If not present the time is written to a module variable. |