-
Notifications
You must be signed in to change notification settings - Fork 46
toc
Fabian Kindermann edited this page Apr 2, 2021
·
1 revision
function toc(file)This subroutine stops the CPU timer and prints the time that has elapsed since the timer has been started using the subroutine tic. If the optional variable
file
is not present, the subroutine prints the resulting time to the screen. Otherwise, it prints it to the file specified in the file handle.
-
integer :: file
If a file handle is supplied through this variable, the resulting time is printed into this file. To create a file handle, you can use theopen
statement. If you, for example, use the codeopen(21, file = "output.out") call toc(21)
the output time is printed to the fileoutput.out
.