[all-commits] [llvm/llvm-project] ce167c: [libcxx] Use Fuchsia-native monotonic clock for st...

Roland McGrath via All-commits all-commits at lists.llvm.org
Mon Jan 10 13:15:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce167c6fb2ae67cffa6702b869762fb80b62d3bc
      https://github.com/llvm/llvm-project/commit/ce167c6fb2ae67cffa6702b869762fb80b62d3bc
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M libcxx/src/chrono.cpp

  Log Message:
  -----------
  [libcxx] Use Fuchsia-native monotonic clock for std::chrono::steady_clock

Use the zx_clock_get_monotonic system call directly rather than
going through the POSIX clock_gettime function.  The libc function
is a trivial wrapper around the system call, and is not a standard C
function.  Avoiding it reduces the Fuchsia libc ABI surface that
libc++ depends on.

Reviewed By: phosek, ldionne, #libc

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




More information about the All-commits mailing list