[fuchsia] Complete migration to zx_clock_get
zx_clock_get and zx_clock_get_new are now the same. We can complete the
migration back to zx_clock_get.
Change-Id: I6979242eb24c5d29cff002dde7b228043c1d87f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107305
Auto-Submit: Adam Barth <abarth@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
index 517f3c4..efde807 100644
--- a/runtime/vm/os_fuchsia.cc
+++ b/runtime/vm/os_fuchsia.cc
@@ -90,7 +90,7 @@
int OS::GetLocalTimeZoneAdjustmentInSeconds() {
int32_t local_offset, dst_offset;
zx_time_t now = 0;
- zx_clock_get_new(ZX_CLOCK_UTC, &now);
+ zx_clock_get(ZX_CLOCK_UTC, &now);
zx_status_t status = GetLocalAndDstOffsetInSeconds(
now / ZX_SEC(1), &local_offset, &dst_offset);
return status == ZX_OK ? local_offset : 0;
@@ -102,7 +102,7 @@
int64_t OS::GetCurrentTimeMicros() {
zx_time_t now = 0;
- zx_clock_get_new(ZX_CLOCK_UTC, &now);
+ zx_clock_get(ZX_CLOCK_UTC, &now);
return now / kNanosecondsPerMicrosecond;
}
@@ -122,7 +122,7 @@
int64_t OS::GetCurrentThreadCPUMicros() {
zx_time_t now = 0;
- zx_clock_get_new(ZX_CLOCK_THREAD, &now);
+ zx_clock_get(ZX_CLOCK_THREAD, &now);
return now / kNanosecondsPerMicrosecond;
}