Index: runtime/bin/utils_macos.cc |
diff --git a/runtime/bin/utils_macos.cc b/runtime/bin/utils_macos.cc |
index 1c79c0da5c99c1ca554f8ef155687e01725ccc36..f717eddc92e15d640075393e8a444276530dd7d9 100644 |
--- a/runtime/bin/utils_macos.cc |
+++ b/runtime/bin/utils_macos.cc |
@@ -87,4 +87,8 @@ int64_t TimerUtils::GetCurrentTimeMicros() { |
return (static_cast<int64_t>(tv.tv_sec) * 1000000) + tv.tv_usec; |
} |
+void TimerUtils::Sleep(int64_t millis) { |
+ usleep(millis * 1000); |
+} |
+ |
#endif // defined(TARGET_OS_MACOS) |