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
Event Timeline
flang/runtime/time-intrinsic.cpp | ||
---|---|---|
135 | 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 | ||
---|---|---|
135 | 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.