/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/profiler/ |
D | tracked_time_unittest.cc | 28 base::TimeTicks big = base::TimeTicks() + in TEST() 30 EXPECT_EQ(kReallyBigMilliseconds, (big - base::TimeTicks()).InMilliseconds()); in TEST() 55 base::TimeTicks ticks_before = base::TimeTicks::Now(); in TEST() 62 base::TimeTicks ticks_after = base::TimeTicks::Now(); in TEST() 86 base::TimeTicks ticks_before = base::TimeTicks::Now(); in TEST() 95 base::TimeTicks ticks_after = base::TimeTicks::Now(); in TEST()
|
/external/libchrome/base/trace_event/ |
D | trace_event_synthetic_delay.cc | 28 TimeTicks Now() override; 88 TimeTicks start_time = clock_->Now(); in Begin() 97 void TraceEventSyntheticDelay::BeginParallel(TimeTicks* out_end_time) { in BeginParallel() 101 *out_end_time = TimeTicks(); in BeginParallel() 105 TimeTicks start_time = clock_->Now(); in BeginParallel() 118 TimeTicks end_time; in End() 129 void TraceEventSyntheticDelay::EndParallel(TimeTicks end_time) { in EndParallel() 134 TimeTicks TraceEventSyntheticDelay::CalculateEndTimeLocked( in CalculateEndTimeLocked() 135 TimeTicks start_time) { in CalculateEndTimeLocked() 137 return TimeTicks(); in CalculateEndTimeLocked() [all …]
|
D | trace_event_synthetic_delay.h | 73 virtual base::TimeTicks Now() = 0; 108 void BeginParallel(base::TimeTicks* out_end_time); 112 void EndParallel(base::TimeTicks end_time); 121 base::TimeTicks CalculateEndTimeLocked(base::TimeTicks start_time); 122 void ApplyDelay(base::TimeTicks end_time); 129 base::TimeTicks end_time_; 153 base::TimeTicks end_time_;
|
D | trace_event_synthetic_delay_unittest.cc | 30 base::TimeTicks Now() override { in Now() 46 base::TimeTicks start = Now(); in TestFunction() 52 base::TimeTicks start = Now(); in AsyncTestFunctionBegin() 58 base::TimeTicks start = Now(); in AsyncTestFunctionEnd() 64 base::TimeTicks now_; 139 base::TimeTicks end_times[2]; in TEST_F() 140 base::TimeTicks start_time = Now(); in TEST_F()
|
D | trace_log.h | 234 const TimeTicks& timestamp, 249 const TimeTicks& timestamp, 391 const TimeTicks& timestamp, 425 TimeTicks OffsetNow() const { return OffsetTimestamp(TimeTicks::Now()); } 426 TimeTicks OffsetTimestamp(const TimeTicks& timestamp) const { 461 base::hash_map<int, std::stack<TimeTicks>> thread_event_start_times_; 464 TimeTicks buffer_limit_reached_timestamp_;
|
D | trace_event.h | 660 static inline void SetTraceValue(const base::TimeTicks arg, in SetTraceValue() 689 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 713 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 744 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 776 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 803 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 820 const base::TimeTicks now = base::TimeTicks::Now(); in AddTraceEvent() 835 const base::TimeTicks& timestamp, in AddTraceEventWithThreadIdAndTimestamp() 861 base::TimeTicks now = base::TimeTicks::Now(); in AddTraceEvent() 879 base::TimeTicks now = base::TimeTicks::Now(); in AddTraceEvent() [all …]
|
/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/v8/src/ |
D | counters-inl.h | 22 base::TimeTicks now = 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 = Now(); in Stop() 58 bool RuntimeCallTimer::IsStarted() { return start_ticks_ != base::TimeTicks(); } in IsStarted() 60 base::TimeTicks RuntimeCallTimer::Now() { in Now() 61 return base::TimeTicks::HighResolutionNow(); in Now()
|
/external/libchrome/base/synchronization/ |
D | waitable_event_unittest.cc | 185 TimeTicks start = TimeTicks::Now(); in TEST() 189 EXPECT_GE(TimeTicks::Now() - start, thread_delay); in TEST() 201 TimeTicks start_time = TimeTicks::Now(); in TEST() 203 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 212 TimeTicks start_time(TimeTicks::Now()); in TEST() 221 EXPECT_FALSE(ev.TimedWaitUntil(TimeTicks())); in TEST() 226 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 233 start_time = TimeTicks::Now(); in TEST() 236 EXPECT_TRUE(ev.TimedWaitUntil(TimeTicks::Max())); in TEST() 237 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST()
|
D | spin_wait.h | 38 base::TimeTicks start = base::TimeTicks::Now(); \ 41 if (kTimeout < base::TimeTicks::Now() - start) { \ 42 EXPECT_LE((base::TimeTicks::Now() - start).InMilliseconds(), \
|
/external/v8/src/base/platform/ |
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();
|
D | time.cc | 248 TimeTicks ticks = GetSystemTicks(); in Now() 271 static TimeTicks GetSystemTicks() { in GetSystemTicks() 272 return TimeTicks::Now(); in GetSystemTicks() 281 TimeTicks initial_ticks_; 583 TimeTicks TimeTicks::Now() { in Now() 585 TimeTicks ticks(tick_clock.Pointer()->Now()); in Now() 591 TimeTicks TimeTicks::HighResolutionNow() { in HighResolutionNow() 593 TimeTicks ticks(high_res_tick_clock.Pointer()->Now()); in HighResolutionNow() 600 bool TimeTicks::IsHighResolutionClockWorking() { in IsHighResolutionClockWorking() 606 TimeTicks TimeTicks::Now() { in Now() [all …]
|
D | time.h | 33 class TimeTicks; variable 343 class V8_BASE_EXPORT TimeTicks final 344 : public time_internal::TimeBase<TimeTicks> { 346 TimeTicks() : TimeBase(0) {} in TimeTicks() function 352 static TimeTicks Now(); 359 static TimeTicks HighResolutionNow(); 365 friend class time_internal::TimeBase<TimeTicks>; 369 explicit TimeTicks(int64_t ticks) : TimeBase(ticks) {} in TimeTicks() function 372 inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) {
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 634 TEST(TimeTicks, Deltas) { in TEST() argument 636 TimeTicks ticks_start = TimeTicks::Now(); in TEST() 638 TimeTicks ticks_stop = TimeTicks::Now(); in TEST() 661 static void HighResClockTest(TimeTicks (*GetTicks)()) { in HighResClockTest() 664 if (!TimeTicks::IsHighResolution()) in HighResClockTest() 681 TimeTicks ticks_start = GetTicks(); in HighResClockTest() 698 TEST(TimeTicks, HighRes) { in TEST() argument 699 HighResClockTest(&TimeTicks::Now); in TEST() 712 TimeTicks begin = TimeTicks::Now(); in TEST() 719 TimeTicks end = TimeTicks::Now(); in TEST() [all …]
|
D | time.cc | 289 : unix_epoch_(TimeTicks::Now() - (Time::Now() - Time::UnixEpoch())) {} in UnixEpochSingleton() 291 TimeTicks unix_epoch() const { return unix_epoch_; } in unix_epoch() 294 const TimeTicks unix_epoch_; 303 TimeTicks TimeTicks::UnixEpoch() { in UnixEpoch() 307 TimeTicks TimeTicks::SnappedToNextTick(TimeTicks tick_phase, in SnappedToNextTick() 320 std::ostream& operator<<(std::ostream& os, TimeTicks time_ticks) { in operator <<() 326 const TimeDelta as_time_delta = time_ticks - TimeTicks(); in operator <<()
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner.cc | 31 TimeTicks NowTicks() override; 44 TimeTicks MockTickClock::NowTicks() { in NowTicks() 85 TimeTicks post_time, 110 TimeTicks post_time, in TestOrderedPendingTask() 153 TimeTicks start_ticks) in TestMockTimeTaskRunner() 163 const TimeTicks original_now_ticks = now_ticks_; in FastForwardBy() 190 TimeTicks TestMockTimeTaskRunner::NowTicks() const { in NowTicks() 287 const TimeTicks original_now_ticks = now_ticks_; in ProcessAllTasksNoLaterThan() 302 void TestMockTimeTaskRunner::ForwardClocksUntilTickTime(TimeTicks later_ticks) { in ForwardClocksUntilTickTime() 312 bool TestMockTimeTaskRunner::DequeueNextTask(const TimeTicks& reference, in DequeueNextTask()
|
D | test_mock_time_task_runner.h | 104 TestMockTimeTaskRunner(Time start_time, TimeTicks start_ticks); 126 TimeTicks NowTicks() const; 193 void ForwardClocksUntilTickTime(TimeTicks later_ticks); 198 bool DequeueNextTask(const TimeTicks& reference, 207 TimeTicks now_ticks_;
|
/external/libchrome/dbus/ |
D | exported_object.cc | 96 const base::TimeTicks start_time = base::TimeTicks::Now(); in SendSignal() 152 void ExportedObject::SendSignalInternal(base::TimeTicks start_time, in SendSignalInternal() 161 base::TimeTicks::Now() - start_time); in SendSignalInternal() 219 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() 245 base::TimeTicks start_time) { in RunMethod() 255 void ExportedObject::SendResponse(base::TimeTicks start_time, in SendResponse() 274 base::TimeTicks start_time) { in OnMethodCompleted() 301 base::TimeTicks::Now() - start_time); in OnMethodCompleted()
|
D | object_proxy.cc | 86 const base::TimeTicks start_time = base::TimeTicks::Now(); in CallMethodAndBlockWithErrorDetails() 106 base::TimeTicks::Now() - start_time); in CallMethodAndBlockWithErrorDetails() 135 const base::TimeTicks start_time = base::TimeTicks::Now(); in CallMethodWithErrorCallback() 243 base::TimeTicks in_start_time) in OnPendingCallIsCompleteData() 257 base::TimeTicks start_time) { in StartAsyncMethodCall() 301 base::TimeTicks start_time) { in OnPendingCallIsComplete() 320 base::TimeTicks start_time, in RunResponseCallback() 370 base::TimeTicks::Now() - start_time); in RunResponseCallback() 510 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() 523 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() [all …]
|
/external/libchrome/base/metrics/ |
D | sparse_histogram_unittest.cc | 283 TimeTicks create_start = TimeTicks::Now(); in TEST_P() 286 TimeDelta create_ticks = TimeTicks::Now() - create_start; in TEST_P() 295 TimeTicks lookup_start = TimeTicks::Now(); in TEST_P() 306 TimeDelta lookup_ticks = TimeTicks::Now() - lookup_start; in TEST_P() 318 TimeTicks add_start = TimeTicks::Now(); in TEST_P() 321 TimeDelta add_ticks = TimeTicks::Now() - add_start; in TEST_P()
|
/external/libmojo/mojo/common/ |
D | time_struct_traits.h | 40 struct StructTraits<common::mojom::TimeTicksDataView, base::TimeTicks> { 41 static int64_t internal_value(const base::TimeTicks& time) { 46 base::TimeTicks* time) { 47 *time = base::TimeTicks() +
|