[flang-commits] [PATCH] D104020: [flang] Add POSIX implementation for CPU_TIME
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jun 10 10:15:49 PDT 2021
klausler accepted this revision.
klausler added a comment.
This revision is now accepted and ready to land.
Thanks for figuring this out.
================
Comment at: flang/runtime/time-intrinsic.cpp:63
+ struct timespec tspec;
+ if (clock_gettime(CLOCKID, &tspec) == 0)
+ return tspec.tv_nsec * 1.0e-9 + tspec.tv_sec;
----------------
We've been using braces on all `if` statements in f18.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104020/new/
https://reviews.llvm.org/D104020
More information about the flang-commits
mailing list