Index: base/time_win_unittest.cc |
diff --git a/base/time_win_unittest.cc b/base/time_win_unittest.cc |
index e3ba09a690764b417976693317521daf8eec412a..3dbf075df609cfc0bf347ed61eb1f2a01b6896f6 100644 |
--- a/base/time_win_unittest.cc |
+++ b/base/time_win_unittest.cc |
@@ -208,6 +208,10 @@ TEST(TimeTicks, TimerPerformance) { |
} |
TEST(TimeTicks, Drift) { |
+ // If QPC is disabled, this isn't measuring anything. |
+ if (!TimeTicks::IsHighResClockWorking()) |
+ return; |
+ |
const int kIterations = 100; |
int64 total_drift = 0; |
@@ -227,8 +231,7 @@ TEST(TimeTicks, Drift) { |
} |
// Sanity check. We expect some time drift to occur, especially across |
- // the number of iterations we do. However, if the QPC is disabled, this |
- // is not measuring anything (drift is zero in that case). |
+ // the number of iterations we do. |
EXPECT_LT(0, total_drift); |
printf("average time drift in microseconds: %lld\n", |