SECOND (The GNU Fortran Compiler)

### 8.246 `SECOND` — CPU time function ¶

Synopsis:

  `CALL SECOND(TIME)`
  `TIME = SECOND()`

Description:

  Returns a `REAL(4)` value representing the elapsed CPU time in seconds. This provides the same functionality as the standard `CPU_TIME` intrinsic, and is only included for backwards compatibility.

  This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.

Class:

  Subroutine, function

Arguments:

  TIME | Shall be of type `REAL(4)`.

Return value:

  In either syntax, TIME is set to the process’s current runtime in seconds.

Standard:

  GNU extension

See also:

  `CPU_TIME` — CPU elapsed time in seconds