/external/v8/src/base/platform/ |
D | time.h | 26 class TimeTicks; variable 301 class TimeTicks final { 303 TimeTicks() : ticks_(0) {} in TimeTicks() function 309 static TimeTicks Now(); 316 static TimeTicks HighResolutionNow(); 325 static TimeTicks KernelTimestampNow(); 333 static TimeTicks FromInternalValue(int64_t value) { in FromInternalValue() 334 return TimeTicks(value); in FromInternalValue() 340 TimeTicks& operator=(const TimeTicks other) { 346 TimeDelta operator-(const TimeTicks other) const { [all …]
|
D | time.cc | 162 TimeTicks ticks = GetSystemTicks(); in Now() 185 static TimeTicks GetSystemTicks() { in GetSystemTicks() 186 return TimeTicks::Now(); in GetSystemTicks() 195 TimeTicks initial_ticks_; 502 TimeTicks TimeTicks::Now() { in Now() 504 TimeTicks ticks(tick_clock.Pointer()->Now()); in Now() 510 TimeTicks TimeTicks::HighResolutionNow() { in HighResolutionNow() 512 TimeTicks ticks(high_res_tick_clock.Pointer()->Now()); in HighResolutionNow() 519 bool TimeTicks::IsHighResolutionClockWorking() { in IsHighResolutionClockWorking() 525 TimeTicks TimeTicks::KernelTimestampNow() { return TimeTicks(0); } in KernelTimestampNow() [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 | 55 TimeTicks now = TimeTicks::Now(); in WaitFor() 56 TimeTicks end = now + rel_time; in WaitFor() 70 now = TimeTicks::Now(); in WaitFor() 183 TimeTicks now = TimeTicks::Now(); 184 TimeTicks end = now + rel_time; 193 now = TimeTicks::Now();
|
/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 | 27 TimeTicks Now() override; 86 TimeTicks start_time = clock_->Now(); in Begin() 95 void TraceEventSyntheticDelay::BeginParallel(TimeTicks* out_end_time) { in BeginParallel() 98 *out_end_time = TimeTicks(); in BeginParallel() 102 TimeTicks start_time = clock_->Now(); in BeginParallel() 114 TimeTicks end_time; in End() 125 void TraceEventSyntheticDelay::EndParallel(TimeTicks end_time) { in EndParallel() 130 TimeTicks TraceEventSyntheticDelay::CalculateEndTimeLocked( in CalculateEndTimeLocked() 131 TimeTicks start_time) { in CalculateEndTimeLocked() 133 return TimeTicks(); in CalculateEndTimeLocked() [all …]
|
D | trace_event_synthetic_delay.h | 76 virtual base::TimeTicks Now() = 0; 111 void BeginParallel(base::TimeTicks* out_end_time); 115 void EndParallel(base::TimeTicks end_time); 124 base::TimeTicks CalculateEndTimeLocked(base::TimeTicks start_time); 125 void ApplyDelay(base::TimeTicks end_time); 132 base::TimeTicks end_time_; 156 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 | 141 typedef void (*EventCallback)(TimeTicks timestamp, 228 const TimeTicks& timestamp, 242 const TimeTicks& timestamp, 380 const TimeTicks& timestamp, 414 TimeTicks OffsetNow() const { return OffsetTimestamp(TimeTicks::Now()); } 415 TimeTicks OffsetTimestamp(const TimeTicks& timestamp) const { 450 base::hash_map<int, std::stack<TimeTicks>> thread_event_start_times_; 453 TimeTicks buffer_limit_reached_timestamp_;
|
/external/libweave/src/ |
D | backoff_entry_unittest.cc | 10 using base::TimeTicks; 19 : BackoffEntry(policy), 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) { now_ = now; } in set_now() 32 TimeTicks now_; 52 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); in TEST() 130 TimeTicks result = entry.GetReleaseTime(); in TEST() 168 TimeTicks result = entry.GetReleaseTime(); in TEST() 206 TimeTicks result = entry.GetReleaseTime(); in TEST() [all …]
|
D | backoff_entry.cc | 57 base::TimeTicks now = ImplGetTimeNow(); in GetTimeUntilRelease() 63 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime() 67 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime() 75 base::TimeTicks now = ImplGetTimeNow(); in CanDiscard() 104 exponential_backoff_release_time_ = base::TimeTicks(); in Reset() 107 base::TimeTicks BackoffEntry::ImplGetTimeNow() const { in ImplGetTimeNow() 108 return base::TimeTicks::Now(); in ImplGetTimeNow() 111 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime() 139 (ImplGetTimeNow() - base::TimeTicks()).InMicroseconds(); in CalculateReleaseTime() 162 base::TimeTicks() + base::TimeDelta::FromMicroseconds(release_time_us), in CalculateReleaseTime()
|
D | backoff_entry.h | 72 base::TimeTicks GetReleaseTime() const; 79 void SetCustomReleaseTime(const base::TimeTicks& release_time); 94 virtual base::TimeTicks ImplGetTimeNow() const; 98 base::TimeTicks CalculateReleaseTime() const; 102 base::TimeTicks exponential_backoff_release_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/v8/test/unittests/base/platform/ |
D | time-unittest.cc | 152 TEST(TimeTicks, NowResolution) { in TEST() argument 155 ResolutionTest<TimeTicks>(&TimeTicks::Now, kTargetGranularity); in TEST() 159 TEST(TimeTicks, HighResolutionNowResolution) { in TEST() argument 160 if (!TimeTicks::IsHighResolutionClockWorking()) return; in TEST() 164 ResolutionTest<TimeTicks>(&TimeTicks::HighResolutionNow, kTargetGranularity); in TEST() 168 TEST(TimeTicks, IsMonotonic) { in TEST() argument 169 TimeTicks previous_normal_ticks; in TEST() 170 TimeTicks previous_highres_ticks; in TEST() 174 TimeTicks normal_ticks = TimeTicks::Now(); in TEST() 175 TimeTicks highres_ticks = TimeTicks::HighResolutionNow(); in TEST()
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 573 TEST(TimeTicks, Deltas) { in TEST() argument 575 TimeTicks ticks_start = TimeTicks::Now(); in TEST() 577 TimeTicks ticks_stop = TimeTicks::Now(); in TEST() 600 static void HighResClockTest(TimeTicks (*GetTicks)()) { in HighResClockTest() 603 if (!TimeTicks::IsHighResolution()) in HighResClockTest() 620 TimeTicks ticks_start = GetTicks(); in HighResClockTest() 637 TEST(TimeTicks, HighRes) { in TEST() argument 638 HighResClockTest(&TimeTicks::Now); in TEST() 651 TimeTicks begin = TimeTicks::Now(); in TEST() 658 TimeTicks end = TimeTicks::Now(); in TEST() [all …]
|
D | time.cc | 285 : unix_epoch_(TimeTicks::Now() - (Time::Now() - Time::UnixEpoch())) {} in UnixEpochSingleton() 287 TimeTicks unix_epoch() const { return unix_epoch_; } in unix_epoch() 290 const TimeTicks unix_epoch_; 299 TimeTicks TimeTicks::UnixEpoch() { in UnixEpoch() 303 TimeTicks TimeTicks::SnappedToNextTick(TimeTicks tick_phase, in SnappedToNextTick() 316 std::ostream& operator<<(std::ostream& os, TimeTicks time_ticks) { in operator <<() 322 const TimeDelta as_time_delta = time_ticks - TimeTicks(); in operator <<()
|
D | time.h | 643 class BASE_EXPORT TimeTicks : public time_internal::TimeBase<TimeTicks> { 645 TimeTicks() : TimeBase(0) { in TimeTicks() function 652 static TimeTicks Now(); 664 static TimeTicks FromQPCValue(LONGLONG qpc_value); 675 static TimeTicks UnixEpoch(); 680 TimeTicks SnappedToNextTick(TimeTicks tick_phase, 690 friend class time_internal::TimeBase<TimeTicks>; 694 explicit TimeTicks(int64_t us) : TimeBase(us) {} in TimeTicks() function 698 BASE_EXPORT std::ostream& operator<<(std::ostream& os, TimeTicks time_ticks); 746 FRIEND_TEST_ALL_PREFIXES(TimeTicks, TSCTicksPerSecond);
|
/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() 220 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() 246 base::TimeTicks start_time) { in RunMethod() 256 void ExportedObject::SendResponse(base::TimeTicks start_time, in SendResponse() 275 base::TimeTicks start_time) { in OnMethodCompleted() 304 base::TimeTicks::Now() - start_time); in OnMethodCompleted()
|
D | object_proxy.cc | 84 const base::TimeTicks start_time = base::TimeTicks::Now(); in CallMethodAndBlockWithErrorDetails() 104 base::TimeTicks::Now() - start_time); in CallMethodAndBlockWithErrorDetails() 132 const base::TimeTicks start_time = base::TimeTicks::Now(); in CallMethodWithErrorCallback() 240 base::TimeTicks in_start_time) in OnPendingCallIsCompleteData() 254 base::TimeTicks start_time) { in StartAsyncMethodCall() 298 base::TimeTicks start_time) { in OnPendingCallIsComplete() 317 base::TimeTicks start_time, in RunResponseCallback() 366 base::TimeTicks::Now() - start_time); in RunResponseCallback() 507 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() 520 const base::TimeTicks start_time = base::TimeTicks::Now(); in HandleMessage() [all …]
|
/external/libweave/third_party/chromium/base/time/ |
D | time_unittest.cc | 378 static void HighResClockTest(TimeTicks (*GetTicks)()) { in HighResClockTest() 381 if (!TimeTicks::IsHighResolution()) in HighResClockTest() 398 TimeTicks ticks_start = GetTicks(); in HighResClockTest() 415 TEST(TimeTicks, HighRes) { in TEST() argument 416 HighResClockTest(&TimeTicks::Now); in TEST() 419 TEST(TimeTicks, SnappedToNextTickBasic) { in TEST() argument 420 base::TimeTicks phase = base::TimeTicks::FromInternalValue(4000); in TEST() 422 base::TimeTicks timestamp; in TEST() 425 timestamp = base::TimeTicks::FromInternalValue(3500); in TEST() 430 timestamp = base::TimeTicks::FromInternalValue(4500); in TEST() [all …]
|
D | time.cc | 261 : unix_epoch_(TimeTicks::Now() - (Time::Now() - Time::UnixEpoch())) {} in UnixEpochSingleton() 263 TimeTicks unix_epoch() const { return unix_epoch_; } in unix_epoch() 266 const TimeTicks unix_epoch_; 271 TimeTicks TimeTicks::SnappedToNextTick(TimeTicks tick_phase, in SnappedToNextTick() 284 std::ostream& operator<<(std::ostream& os, TimeTicks time_ticks) { in operator <<() 290 const TimeDelta as_time_delta = time_ticks - TimeTicks(); in operator <<()
|
/external/libchrome/base/synchronization/ |
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/libchrome/base/timer/ |
D | timer.cc | 126 desired_run_time_ = TimeTicks::Now() + delay_; in Reset() 128 desired_run_time_ = TimeTicks(); in Reset() 158 scheduled_run_time_ = desired_run_time_ = TimeTicks::Now() + delay; in PostNewScheduledTask() 162 scheduled_run_time_ = desired_run_time_ = TimeTicks(); in PostNewScheduledTask() 194 TimeTicks now = TimeTicks::Now(); in RunScheduledTask()
|