[flang] [llvm] [flang][flang-rt] Add support for non-standard TIMEF intrinsic (PR #185377)
Eugene Epshteyn via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 06:33:49 PDT 2026
================
@@ -413,6 +416,54 @@ double RTNAME(Dsecnds)(double *refTime, const char *sourceFile, int line) {
// GNU extension function TIME()
std::int64_t RTNAME(time)() { return time(nullptr); }
+/*
+ * Extension function TIMEF().
+ * By default, it returns number of seconds that have
+ * elapsed since the first time TIMEF was called.
+ * For the first call, it returns 0.
+ *
+ * FLANG_TIMEF_IN_MILLISECONDS=1 sets the resolution to
+ * milliseconds
+ */
----------------
eugeneepshteyn wrote:
`//` comment style, please.
https://github.com/llvm/llvm-project/pull/185377
More information about the llvm-commits
mailing list