summaryrefslogtreecommitdiffstats
path: root/base/spin_wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/spin_wait.h')
-rw-r--r--base/spin_wait.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/spin_wait.h b/base/spin_wait.h
index d6571b7..b1e2045 100644
--- a/base/spin_wait.h
+++ b/base/spin_wait.h
@@ -35,11 +35,11 @@
(expression))
#define SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(delta, expression) do { \
- base::Time start = base::Time::Now(); \
+ base::TimeTicks start = base::TimeTicks::Now(); \
const base::TimeDelta kTimeout = delta; \
while (!(expression)) { \
- if (kTimeout < base::Time::Now() - start) { \
- EXPECT_LE((base::Time::Now() - start).InMilliseconds(), \
+ if (kTimeout < base::TimeTicks::Now() - start) { \
+ EXPECT_LE((base::TimeTicks::Now() - start).InMilliseconds(), \
kTimeout.InMilliseconds()) << "Timed out"; \
break; \
} \