| Index: runtime/vm/os_win.cc
|
| diff --git a/runtime/vm/os_win.cc b/runtime/vm/os_win.cc
|
| index fcb8447c6333d8c2932b6ec4b06d733faec4da0d..98e864eb93920207a162bfc4cd222865392f58e9 100644
|
| --- a/runtime/vm/os_win.cc
|
| +++ b/runtime/vm/os_win.cc
|
| @@ -174,6 +174,16 @@ void OS::Sleep(int64_t millis) {
|
| }
|
|
|
|
|
| +void OS::SleepMicros(int64_t micros) {
|
| + // Windows only supports millisecond sleeps.
|
| + if (micros < kMicrosecondsPerMillisecond) {
|
| + // Calling ::Sleep with 0 has no determined behaviour, round up.
|
| + micros = kMicrosecondsPerMillisecond;
|
| + }
|
| + OS::Sleep(micros / kMicrosecondsPerMillisecond);
|
| +}
|
| +
|
| +
|
| void OS::DebugBreak() {
|
| #if defined(_MSC_VER)
|
| // Microsoft Visual C/C++ or drop-in replacement.
|
|
|