[all-commits] [llvm/llvm-project] 3330b2: [flang] Add POSIX implementation for SYSTEM_CLOCK

Diana via All-commits all-commits at lists.llvm.org
Thu Aug 19 01:11:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3330b2532f50c5df0d6188fc766812b6132c1981
      https://github.com/llvm/llvm-project/commit/3330b2532f50c5df0d6188fc766812b6132c1981
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M flang/runtime/time-intrinsic.cpp

  Log Message:
  -----------
  [flang] Add POSIX implementation for SYSTEM_CLOCK

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.

Differential Revision: https://reviews.llvm.org/D105970




More information about the All-commits mailing list