[session][input] Prefer zx_clock_get_monotonic to zx_clock_get

Track down and convert calls made to
zx::Time::get(zx::ClockId::Monotonic) and change them into calls to
zx::Time::get_monotonic() instead.

This is part of the process of getting ready for the deprecation of
zx_clock_get(...), and has the added benefit of being a tiny bit
faster because clock_get_monotonic can almost always skip the syscall.

Change-Id: Idf1637f66dc58ef20dd4f518da41bbf2649e95cb
Reviewed-on: https://fuchsia-review.googlesource.com/c/experiences/+/441915
Testability-Review: Nick Maniscalco <maniscalco@google.com>
Commit-Queue: John Grossman <johngro@google.com>
Reviewed-by: Andrew Wilson <anwilson@google.com>
1 file changed
tree: 2ad3a91d1b60044282f97a3baf877bb8b50a8e96
  1. base_shells/
  2. benchmarks/
  3. bin/
  4. examples/
  5. lib/
  6. session_shells/
  7. tests/
  8. .gitignore
  9. analysis_options.yaml
  10. AUTHORS
  11. BUILD.gn
  12. CONTRIBUTING.md
  13. LICENSE
  14. OWNERS
  15. PATENTS
  16. README.md
README.md

Fuchsia Experiences Repository

This is a companion repository to Fuchsia and contains code that either implements or supports user facing code for the Fuchsia platform. The code provides a majority of the user interface for the Workstation product as well as a small set of examples, tests, and benchmarks.

Build & Run

This repository is a “source petal” included in the Fuchsia Platform Source Tree (FPST) checkout. Code in this repository must be built with Fuchsia in order to be functional, see (the guide)[https://fuchsia.dev/fuchsia-src/development/source_code] for instructions on getting the source.

Hardware

Hardware support should be considered experimental. However, NUC's and Pixelbooks are known to work best. For details on hardware setup see: (Install Fuchsia on a Device)[https://fuchsia.dev/fuchsia-src/development/hardware/paving]

Building

Once you have functional checkout you can (configure a build)[https://fuchsia.dev/fuchsia-src/development/build/fx#configure-a-build] targeting Workstation:

    fx set workstation.<board> # For options run: `fx list-boards`
    fx build

See Fuchsia's (build and pave instructions)[https://fuchsia.dev/fuchsia-src/development/build/build_and_pave_quickstart] for detailed instructions.

Running

Once built, standard Fuchsia workflows for paving, running code, and testing apply. See: (fx workflows)[https://fuchsia.dev/fuchsia-src/development/build/fx] for detailed instructions.