[flang-commits] [flang] [llvm] [flang-rt] Add implementation for date_and_time on Windows (PR #190174)
David Truby via flang-commits
flang-commits at lists.llvm.org
Thu Apr 2 08:31:59 PDT 2026
DavidTruby wrote:
> Why use `GetSystemTimePreciseAsFileTime` instead of `GetSystemTimeAsFileTime`?
>
> Linux `gettimeofday` is also only updated every ervery tick, which corresponds to `GetSystemTimeAsFileTime`.
I suppose we could use `GetSystemTimeAsFileTime` in that case, if there's an extra cost of calling `GetSystemTimePreciseAsFileTime`. I only switched to the precise one here as all the values referenced are in 100ns and `GetSystemTimeAsFileTime` is only in ms.
https://github.com/llvm/llvm-project/pull/190174
More information about the flang-commits
mailing list