Lines Matching refs:TimeDelta

36   const TimeDelta kZeroMs;
37 const TimeDelta kTenMs;
38 const TimeDelta kThirtyMs;
39 const TimeDelta kFortyFiveMs;
40 const TimeDelta kSixtyMs;
41 const TimeDelta kOneHundredMs;
44 : kZeroMs(TimeDelta::FromMilliseconds(0)), in ConditionVariableTest()
45 kTenMs(TimeDelta::FromMilliseconds(10)), in ConditionVariableTest()
46 kThirtyMs(TimeDelta::FromMilliseconds(30)), in ConditionVariableTest()
47 kFortyFiveMs(TimeDelta::FromMilliseconds(45)), in ConditionVariableTest()
48 kSixtyMs(TimeDelta::FromMilliseconds(60)), in ConditionVariableTest()
49 kOneHundredMs(TimeDelta::FromMilliseconds(100)) { in ConditionVariableTest()
80 TimeDelta GetAnAssignment(int thread_id); // Get a work task duration.
108 void SetWorkTime(TimeDelta delay);
142 TimeDelta worker_delay_; // Time each task takes to complete.
182 const TimeDelta WAIT_TIME = TimeDelta::FromMilliseconds(300); in TEST_F()
184 const TimeDelta FUDGE_TIME = TimeDelta::FromMilliseconds(50); in TEST_F()
187 TimeDelta duration = TimeTicks::Now() - start; in TEST_F()
229 const TimeDelta kWaitTime = TimeDelta::FromMilliseconds(300); in TEST_F()
231 const TimeDelta kFudgeTime = TimeDelta::FromMilliseconds(50); in TEST_F()
234 TimeDelta duration = TimeTicks::Now() - start; in TEST_F()
240 EXPECT_TRUE(duration <= TimeDelta::FromSeconds(kDiscontinuitySeconds)); in TEST_F()
395 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(TimeDelta::FromMinutes(1), in TEST_F()
486 SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(TimeDelta::FromMinutes(1), in TEST_F()
512 SetWorkTime(TimeDelta::FromMilliseconds(30)); in WorkQueue()
545 TimeDelta WorkQueue::GetAnAssignment(int thread_id) { in GetAnAssignment()
656 void WorkQueue::SetWorkTime(TimeDelta delay) { in SetWorkTime()
680 PlatformThread::Sleep(TimeDelta::FromMilliseconds(30)); in SpinUntilAllThreadsAreWaiting()
691 PlatformThread::Sleep(TimeDelta::FromMilliseconds(30)); in SpinUntilTaskCountLessThan()
725 TimeDelta work_time; in ThreadMain()
748 if (work_time > TimeDelta::FromMilliseconds(0)) { in ThreadMain()