Index: runtime/bin/utils_fuchsia.cc |
diff --git a/runtime/bin/utils_fuchsia.cc b/runtime/bin/utils_fuchsia.cc |
index 6bb28178ddd4a7bcff33c8922ff3c166d8b4dfad..e617ce308f9baa5849723e865e0f60eed424141e 100644 |
--- a/runtime/bin/utils_fuchsia.cc |
+++ b/runtime/bin/utils_fuchsia.cc |
@@ -97,8 +97,8 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() { |
void TimerUtils::Sleep(int64_t millis) { |
- mx_nanosleep(millis * kMicrosecondsPerMillisecond * |
- kNanosecondsPerMicrosecond); |
+ mx_nanosleep(mx_deadline_after( |
+ millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond)); |
} |
} // namespace bin |