Index: base/time_win_unittest.cc |
diff --git a/base/time_win_unittest.cc b/base/time_win_unittest.cc |
index 3a96b91f216469e677e92a9448380fc6adf50d35..a60a216a5a9e980b04865d3484ec15f7b1fcb476 100644 |
--- a/base/time_win_unittest.cc |
+++ b/base/time_win_unittest.cc |
@@ -220,7 +220,8 @@ TEST(TimeTicks, Drift) { |
// Sleep for a few milliseconds (note that it means 1000 microseconds). |
// If we check the drift too frequently, it's going to increase |
// monotonically, making our measurement less realistic. |
- base::PlatformThread::Sleep((i % 2 == 0) ? 1 : 2); |
+ base::PlatformThread::Sleep( |
+ base::TimeDelta::FromMilliseconds((i % 2 == 0) ? 1 : 2)); |
total_drift += drift_microseconds; |
} |