This is very similar to CPU_TIME, except that we return nanoseconds
rather than seconds. This means we're potentially dealing with rather
large numbers, so we'll have to wrap around to avoid overflows.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/runtime/time-intrinsic.cpp | ||
---|---|---|
140 | Well, the POSIX epoch ought to be set to 1970, and most code survives longer than people expect it to, so I'm sure it will be relevant :P |
flang/runtime/time-intrinsic.cpp | ||
---|---|---|
140 | No, I was pointing out that the overflow path isn't tested. Not a big deal. |
Please use modern braced initializers in the runtime; they're safer.