/external/libchrome/base/task_scheduler/ |
D | sequence_sort_key_unittest.cc | 16 TimeTicks::FromInternalValue(1000)); in TEST() 18 TimeTicks::FromInternalValue(2000)); in TEST() 20 TimeTicks::FromInternalValue(1000)); in TEST() 22 TimeTicks::FromInternalValue(2000)); in TEST() 24 TimeTicks::FromInternalValue(1000)); in TEST() 26 TimeTicks::FromInternalValue(2000)); in TEST() 73 TimeTicks::FromInternalValue(1000)); in TEST() 75 TimeTicks::FromInternalValue(2000)); in TEST() 77 TimeTicks::FromInternalValue(1000)); in TEST() 79 TimeTicks::FromInternalValue(2000)); in TEST() [all …]
|
/external/libchrome/base/task/sequence_manager/ |
D | time_domain_unittest.cc | 36 TestTimeDomain() : now_(TimeTicks() + TimeDelta::FromSeconds(1)) {} in TestTimeDomain() 46 TimeTicks Now() const override { return now_; } in Now() 62 void(LazyNow* lazy_now, TimeTicks run_time)); 64 void SetNow(TimeTicks now) { now_ = now; } in SetNow() 67 TimeTicks now_; 95 TimeTicks delayed_runtime = time_domain_->Now() + delay; in TEST_F() 97 TimeTicks now = time_domain_->Now(); in TEST_F() 107 EXPECT_CALL(*time_domain_.get(), SetNextDelayedDoWork(_, TimeTicks::Max())) in TEST_F() 114 TimeTicks delayed_runtime1 = time_domain_->Now() + delay1; in TEST_F() 115 TimeTicks delayed_runtime2 = time_domain_->Now() + delay2; in TEST_F() [all …]
|
D | task_queue_impl.h | 83 TimeTicks time; 110 TimeTicks desired_run_time, 114 TimeTicks desired_run_time, 174 using OnNextWakeUpChangedCallback = RepeatingCallback<void(TimeTicks)>; 193 Optional<TimeTicks> GetNextScheduledWakeUp(); 203 void InsertFenceAt(TimeTicks time); 220 void AsValueInto(TimeTicks now, trace_event::TracedValue* state) const; 291 void SweepCanceledDelayedTasks(TimeTicks now); 360 Optional<TimeTicks> delayed_fence; 376 TimeTicks now); [all …]
|
D | task_queue.h | 51 TimeTicks next_wake_up) = 0; 141 Task(PostedTask posted_task, TimeTicks desired_run_time); 165 base::TimeTicks start_time() const { in start_time() 169 base::TimeTicks end_time() const { in end_time() 198 base::TimeTicks start_time_; 199 base::TimeTicks end_time_; 245 Optional<TimeTicks> GetNextScheduledWakeUp(); 297 void InsertFenceAt(TimeTicks time);
|
/external/libbrillo/brillo/ |
D | backoff_entry_unittest.cc | 9 using base::TimeTicks; 19 now_(TimeTicks()) { in TestBackoffEntry() 22 SetCustomReleaseTime(TimeTicks()); in TestBackoffEntry() 27 TimeTicks ImplGetTimeNow() const override { return now_; } in ImplGetTimeNow() 29 void set_now(const TimeTicks& now) { in set_now() 34 TimeTicks now_; 54 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); in TEST() 132 TimeTicks result = entry.GetReleaseTime(); in TEST() 170 TimeTicks result = entry.GetReleaseTime(); in TEST() 208 TimeTicks result = entry.GetReleaseTime(); in TEST() [all …]
|
D | backoff_entry.cc | 58 base::TimeTicks now = ImplGetTimeNow(); in GetTimeUntilRelease() 64 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime() 68 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime() 76 base::TimeTicks now = ImplGetTimeNow(); in CanDiscard() 105 exponential_backoff_release_time_ = base::TimeTicks(); in Reset() 108 base::TimeTicks BackoffEntry::ImplGetTimeNow() const { in ImplGetTimeNow() 109 return base::TimeTicks::Now(); in ImplGetTimeNow() 112 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime() 140 (ImplGetTimeNow() - base::TimeTicks()).InMicroseconds(); in CalculateReleaseTime() 163 base::TimeTicks() + base::TimeDelta::FromMicroseconds(release_time_us), in CalculateReleaseTime()
|
D | backoff_entry.h | 73 base::TimeTicks GetReleaseTime() const; 80 void SetCustomReleaseTime(const base::TimeTicks& release_time); 95 virtual base::TimeTicks ImplGetTimeNow() const; 99 base::TimeTicks CalculateReleaseTime() const; 103 base::TimeTicks exponential_backoff_release_time_;
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 821 TEST(TimeTicks, Deltas) { in TEST() argument 823 TimeTicks ticks_start = TimeTicks::Now(); in TEST() 825 TimeTicks ticks_stop = TimeTicks::Now(); in TEST() 848 static void HighResClockTest(TimeTicks (*GetTicks)()) { in HighResClockTest() 851 if (!TimeTicks::IsHighResolution()) in HighResClockTest() 868 TimeTicks ticks_start = GetTicks(); in HighResClockTest() 885 TEST(TimeTicks, HighRes) { in TEST() argument 886 HighResClockTest(&TimeTicks::Now); in TEST() 891 static TimeTicks Now() { in Now() 896 static TimeTicks now_ticks_; [all …]
|
D | time_now_posix.cc | 88 TimeTicks TimeTicksNowIgnoringOverride() { in TimeTicksNowIgnoringOverride() 89 return TimeTicks() + TimeDelta::FromMicroseconds(ClockNow(CLOCK_MONOTONIC)); in TimeTicksNowIgnoringOverride() 94 TimeTicks::Clock TimeTicks::GetClock() { in GetClock() 99 bool TimeTicks::IsHighResolution() { in IsHighResolution() 104 bool TimeTicks::IsConsistentAcrossProcesses() { in IsConsistentAcrossProcesses()
|
/external/libchrome/base/synchronization/ |
D | waitable_event_perftest.cc | 30 TimeTicks start = TimeTicks::Now(); in Signal() 32 signal_times_.push_back(TimeTicks::Now() - start); in Signal() 36 TimeTicks start = TimeTicks::Now(); in Wait() 38 wait_times_.push_back(TimeTicks::Now() - start); in Wait() 41 bool TimedWaitUntil(const TimeTicks& end_time) { in TimedWaitUntil() 42 TimeTicks start = TimeTicks::Now(); in TimedWaitUntil() 44 wait_times_.push_back(TimeTicks::Now() - start); in TimedWaitUntil() 161 TimeTicks end_time = TimeTicks::Now() + TimeDelta::FromSeconds(1); in TEST()
|
D | waitable_event_unittest.cc | 217 TimeTicks start = TimeTicks::Now(); in TEST() 221 EXPECT_GE(TimeTicks::Now() - start, thread_delay); in TEST() 233 TimeTicks start_time = TimeTicks::Now(); in TEST() 235 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 244 TimeTicks start_time(TimeTicks::Now()); in TEST() 253 EXPECT_FALSE(ev.TimedWaitUntil(TimeTicks())); in TEST() 258 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 265 start_time = TimeTicks::Now(); in TEST() 268 EXPECT_TRUE(ev.TimedWaitUntil(TimeTicks::Max())); in TEST() 269 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST()
|
/external/v8/src/base/platform/ |
D | time.cc | 308 TimeTicks ticks = GetSystemTicks(); in Now() 331 static TimeTicks GetSystemTicks() { in GetSystemTicks() 332 return TimeTicks::Now(); in GetSystemTicks() 341 TimeTicks initial_ticks_; 481 TimeTicks TimeTicks::HighResolutionNow() { in HighResolutionNow() 487 return TimeTicks::Now(); in HighResolutionNow() 560 TimeTicks RolloverProtectedNow() { in RolloverProtectedNow() 588 return TimeTicks() + in RolloverProtectedNow() 628 TimeTicks InitialTimeTicksNowFunction(); 632 using TimeTicksNowFunction = decltype(&TimeTicks::Now); [all …]
|
D | elapsed-timer.h | 36 start_ticks_ = TimeTicks(); in Stop() 57 TimeTicks ticks = Now(); in Restart() 83 static V8_INLINE TimeTicks Now() { in Now() 84 TimeTicks now = TimeTicks::HighResolutionNow(); in Now() 89 TimeTicks start_ticks_;
|
D | semaphore.cc | 54 TimeTicks now = TimeTicks::Now(); in WaitFor() 55 TimeTicks end = now + rel_time; in WaitFor() 69 now = TimeTicks::Now(); in WaitFor() 166 TimeTicks now = TimeTicks::Now(); 167 TimeTicks end = now + rel_time; 176 now = TimeTicks::Now();
|
/external/libchrome/base/message_loop/ |
D | message_loop_task_runner_perftest.cc | 51 base::TimeTicks start = base::TimeTicks::Now(); in Run() 52 base::TimeTicks now; in Run() 75 now = base::TimeTicks::Now(); in Run() 106 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override {} in ScheduleDelayedWork() 156 base::TimeTicks start = base::TimeTicks::Now(); in Run() 157 base::TimeTicks now; in Run() 169 now = base::TimeTicks::Now(); in Run()
|
/external/v8/src/ |
D | counters-inl.h | 22 base::TimeTicks now = RuntimeCallTimer::Now(); in Start() 28 void RuntimeCallTimer::Pause(base::TimeTicks now) { in Pause() 31 start_ticks_ = base::TimeTicks(); in Pause() 34 void RuntimeCallTimer::Resume(base::TimeTicks now) { in Resume() 41 base::TimeTicks now = RuntimeCallTimer::Now(); in Stop() 58 bool RuntimeCallTimer::IsStarted() { return start_ticks_ != base::TimeTicks(); } in IsStarted()
|
D | d8-console.cc | 37 default_timer_ = base::TimeTicks::HighResolutionNow(); in D8Console() 87 default_timer_ = base::TimeTicks::HighResolutionNow(); in Time() 97 find->second = base::TimeTicks::HighResolutionNow(); in Time() 99 timers_.insert(std::pair<std::string, base::TimeTicks>( in Time() 100 string, base::TimeTicks::HighResolutionNow())); in Time() 109 delta = base::TimeTicks::HighResolutionNow() - default_timer_; in TimeEnd() 112 base::TimeTicks now = base::TimeTicks::HighResolutionNow(); in TimeEnd() 129 base::TimeDelta delta = base::TimeTicks::HighResolutionNow() - default_timer_; in TimeStamp()
|
/external/libchrome/base/task/sequence_manager/test/ |
D | mock_time_domain.h | 17 explicit MockTimeDomain(TimeTicks initial_now_ticks); 20 void SetNowTicks(TimeTicks now_ticks); 24 TimeTicks Now() const override; 26 void SetNextDelayedDoWork(LazyNow* lazy_now, TimeTicks run_time) override; 30 TimeTicks now_ticks_;
|
D | fake_task.cc | 12 TimeTicks()) {} in FakeTask() 17 FakeTaskTiming::FakeTaskTiming(TimeTicks start, TimeTicks end) in FakeTaskTiming() 24 FakeTaskTiming::FakeTaskTiming(TimeTicks start, in FakeTaskTiming() 25 TimeTicks end, in FakeTaskTiming()
|
D | fake_task.h | 21 FakeTaskTiming(TimeTicks start, TimeTicks end); 22 FakeTaskTiming(TimeTicks start, 23 TimeTicks end,
|
D | mock_time_domain.cc | 10 MockTimeDomain::MockTimeDomain(TimeTicks initial_now_ticks) in MockTimeDomain() 19 TimeTicks MockTimeDomain::Now() const { in Now() 23 void MockTimeDomain::SetNowTicks(TimeTicks now_ticks) { in SetNowTicks() 32 TimeTicks run_time) {} in SetNextDelayedDoWork()
|
/external/libchrome/mojo/public/cpp/base/ |
D | time_unittest.cc | 29 TEST(TimeTest, TimeTicks) { in TEST() argument 30 base::TimeTicks in = base::TimeTicks::Now(); in TEST() 31 base::TimeTicks out; in TEST() 33 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::TimeTicks>(&in, &out)); in TEST()
|
D | time_mojom_traits.cc | 37 base::TimeTicks>::internal_value(const base::TimeTicks& time) { in internal_value() 41 bool StructTraits<mojo_base::mojom::TimeTicksDataView, base::TimeTicks>::Read( in Read() 43 base::TimeTicks* time) { in Read() 44 *time = base::TimeTicks() + in Read()
|
/external/libchrome/dbus/ |
D | exported_object.cc | 97 const base::TimeTicks start_time = base::TimeTicks::Now(); in SendSignal() 153 void ExportedObject::SendSignalInternal(base::TimeTicks start_time, in SendSignalInternal() 162 base::TimeTicks::Now() - start_time); in SendSignalInternal() 223 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() 247 base::TimeTicks start_time) { in RunMethod() 257 void ExportedObject::SendResponse(base::TimeTicks start_time, in SendResponse() 273 base::TimeTicks start_time) { in OnMethodCompleted() 300 base::TimeTicks::Now() - start_time); in OnMethodCompleted()
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner.h | 136 TimeTicks start_ticks, 162 TimeTicks NowTicks() const; 219 TimeTicks NowTicks() const override; 252 void ForwardClocksUntilTickTime(TimeTicks later_ticks); 257 bool DequeueNextTask(const TimeTicks& reference, 271 TimeTicks now_ticks_;
|