[fuchsia] Update zx_clock_get callers (flutter/engine#8998)

Fuchsia is changing zx_clock_get to return a zx_status_t. This change
prepares us for that change.
This commit is contained in:
Adam Barth
2019-05-17 16:37:28 -07:00
committed by GitHub
parent 86701e45c4
commit e1c043fe58
2 changed files with 4 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ namespace fml {
// static
TimePoint TimePoint::Now() {
return TimePoint(zx_clock_get(ZX_CLOCK_MONOTONIC));
return TimePoint(zx_clock_get_monotonic());
}
#else

View File

@@ -476,7 +476,9 @@ Dart_Handle System::VmoMap(fml::RefPtr<Handle> vmo) {
}
uint64_t System::ClockGet(uint32_t clock_id) {
return zx_clock_get(clock_id);
zx_time_t result = 0;
zx_clock_get_new(clock_id, &result);
return result;
}
// clang-format: off