Index: runtime/vm/os_thread_fuchsia.cc |
diff --git a/runtime/vm/os_thread_fuchsia.cc b/runtime/vm/os_thread_fuchsia.cc |
index 536f11f83e54cea5be58cc72814bb9bbf8a93802..481e59f3abf573c59f2bc92c6226c6b75523c318 100644 |
--- a/runtime/vm/os_thread_fuchsia.cc |
+++ b/runtime/vm/os_thread_fuchsia.cc |
@@ -47,7 +47,7 @@ namespace dart { |
static void ComputeTimeSpecMicros(struct timespec* ts, int64_t micros) { |
// time in nanoseconds. |
- mx_time_t now = mx_current_time(); |
+ mx_time_t now = mx_time_get(MX_CLOCK_MONOTONIC); |
mx_time_t target = now + (micros * kNanosecondsPerMicrosecond); |
int64_t secs = target / kNanosecondsPerSecond; |
int64_t nanos = target - (secs * kNanosecondsPerSecond); |