Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 8fc44a9e89aee16d75200cc4ee94a52e31b95b4a..e24f6f905029df079fd4e031cef3b7a650cdf08b 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -807,7 +807,7 @@ class TestApiCallbacks { |
double start = v8::base::OS::TimeCurrentMillis(); |
double duration = 0; |
while (duration < min_duration_ms_) { |
- v8::base::OS::Sleep(1); |
+ v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(1)); |
duration = v8::base::OS::TimeCurrentMillis() - start; |
} |
} |