[flang-commits] [flang] [llvm] [flang][flang-rt] Add support for non-standard TIMEF intrinsic (PR #185377)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Mar 31 06:33:48 PDT 2026
================
@@ -31,6 +32,19 @@ TEST(TimeIntrinsics, CpuTime) {
}
}
+TEST(TimeIntrinsics, Timef) {
+ // We can't really test that we get the "right" result for Timef, but we
+ // can have a smoke test to see that we get something reasonable on the
+ // platforms where we expect to support it.
+ double start{RTNAME(Timef)()}, end{0.0};
+ ASSERT_GE(start, 0.0);
+
+ sleep(2);
----------------
eugeneepshteyn wrote:
My bad, this is CPU time, which is not affected (much) by `sleep()`. Please bring the CPU burning loop back (but let's burn for 1 second.)
https://github.com/llvm/llvm-project/pull/185377
More information about the flang-commits
mailing list