Skip to content

Commit dce6678

Browse files
committed
update docs about etime function
1 parent 3748c05 commit dce6678

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/docs/Intrinsics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ used in constant expressions have currently no folding support at all.
924924

925925
On some systems, the underlying timings are represented using types with sufficiently small limits that overflows (wrap around) are possible, such as 32-bit types. Therefore, the values returned by this intrinsic might be, or become, negative, or numerically less than previous values, during a single run of the compiled program.
926926

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

929929
*VALUES* and *TIME* are `INTENT(OUT)` and provide the following:
930930

@@ -938,9 +938,10 @@ This intrinsic is provided in subroutine forms only.
938938
#### Usage and Info
939939

940940
- **Standard:** GNU extension
941-
- **Class:** Subroutine
941+
- **Class:** Subroutine, function
942942
- **Syntax:** `CALL ETIME(VALUES, TIME)`
943943
- **Arguments:**
944+
- **Return value** Elapsed time in seconds since the start of program execution.
944945

945946
| Argument | Description |
946947
|------------|-----------------------------------------------------------------------|

0 commit comments

Comments
 (0)