[flang-commits] [flang] [llvm] [flang][flang-rt] Add support for non-standard TIMEF intrinsic (PR #185377)

via flang-commits flang-commits at lists.llvm.org
Mon Mar 30 21:54:27 PDT 2026


================
@@ -1233,6 +1233,28 @@ PROGRAM example_time
 END PROGRAM
 ```
 
+### Non-Standard Intrinsics: TIMEF
+
+#### Description
+`TIMEF` returns the number of seconds that have 
+elapsed since the first time TIMEF was called.
+The first time it is called, TIMEF returns 0.
+
+By default, the behaviour matches that of
+ifort and classic-flang compilers. To
+match behaviour of compilers like XLF
+and nvfortran, use 
+`export TIMEF_IN_MILLISECONDS=1` to 
----------------
NimishMishra wrote:

Thanks, I have added this prefix. 

https://github.com/llvm/llvm-project/pull/185377


More information about the flang-commits mailing list