Skip to content
Fabian Kindermann edited this page Apr 2, 2021 · 1 revision
  function toc(file)

Description:

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.

Optional arguments:

  • 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 the open statement. If you, for example, use the code
      open(21, file = "output.out")
      call toc(21)
    
    the output time is printed to the file output.out.

HOME
» Toolbox Documentation
» Other useful routines

Clone this wiki locally