/external/chromium/base/ |
D | time_win_unittest.cc | 15 using base::TimeTicks; 19 class MockTimeTicks : public TimeTicks { 49 TimeTicks last = TimeTicks::Now(); in RolloverTestThreadMain() 51 TimeTicks now = TimeTicks::Now(); in RolloverTestThreadMain() 64 TEST(TimeTicks, WinRollover) { in TEST() argument 111 TEST(TimeTicks, SubMillisecondTimers) { in TEST() argument 114 if (!TimeTicks::IsHighResClockWorking()) in TEST() 122 TimeTicks last_time = TimeTicks::HighResNow(); in TEST() 126 delta = TimeTicks::HighResNow() - last_time; in TEST() 136 TEST(TimeTicks, TimeGetTimeCaps) { in TEST() argument [all …]
|
D | time.h | 45 class TimeTicks; variable 138 TimeTicks operator+(TimeTicks t) const; 162 friend class TimeTicks; variable 453 class BASE_API TimeTicks { 455 TimeTicks() : ticks_(0) { in TimeTicks() function 461 static TimeTicks Now(); 467 static TimeTicks HighResNow(); 488 TimeTicks& operator=(TimeTicks other) { 494 TimeDelta operator-(TimeTicks other) const { 499 TimeTicks& operator+=(TimeDelta delta) { [all …]
|
D | time_win.cc | 51 using base::TimeTicks; 83 TimeTicks initial_ticks; 86 initial_ticks = TimeTicks::Now(); in InitializeClock() 119 TimeTicks ticks = TimeTicks::Now(); in Now() 387 TimeTicks::TickFunctionType TimeTicks::SetMockTickFunction( in SetMockTickFunction() 395 TimeTicks TimeTicks::Now() { in Now() 396 return TimeTicks() + RolloverProtectedNow(); in Now() 400 TimeTicks TimeTicks::HighResNow() { in HighResNow() 401 return TimeTicks() + HighResNowSingleton::GetInstance()->Now(); in HighResNow() 405 int64 TimeTicks::GetQPCDriftMicroseconds() { in GetQPCDriftMicroseconds() [all …]
|
D | time_posix.cc | 168 TimeTicks TimeTicks::Now() { in Now() 174 return TimeTicks(); in Now() 181 return TimeTicks(absolute_micro); in Now() 186 TimeTicks TimeTicks::Now() { in Now() 190 return TimeTicks(clock()); in Now() 198 TimeTicks TimeTicks::HighResNow() { in HighResNow()
|
D | time_unittest.cc | 14 using base::TimeTicks; 106 TEST(TimeTicks, Deltas) { in TEST() argument 108 TimeTicks ticks_start = TimeTicks::Now(); in TEST() 110 TimeTicks ticks_stop = TimeTicks::Now(); in TEST() 133 TEST(TimeTicks, HighResNow) { in TEST() argument 137 if (!TimeTicks::IsHighResClockWorking()) in TEST() 155 TimeTicks ticks_start = TimeTicks::HighResNow(); in TEST() 160 delta = TimeTicks::HighResNow() - ticks_start; in TEST()
|
/external/chromium/chrome/browser/net/ |
D | load_timing_observer.h | 36 base::TimeTicks base_ticks; 44 base::TimeTicks connect_start; 45 base::TimeTicks connect_end; 46 base::TimeTicks dns_start; 47 base::TimeTicks dns_end; 48 base::TimeTicks ssl_start; 49 base::TimeTicks ssl_end; 53 base::TimeTicks dns_start; 54 base::TimeTicks dns_end; 58 base::TimeTicks ssl_start; [all …]
|
D | passive_log_collector_unittest.cc | 28 base::TimeTicks(), in MakeStartLogEntryWithURL() 43 base::TimeTicks(), in MakeEndLogEntry() 183 base::TimeTicks(), in TEST() 195 base::TimeTicks(), in TEST() 221 base::TimeTicks(), in TEST() 231 base::TimeTicks(), in TEST() 255 base::TimeTicks(), in TEST() 282 base::TimeTicks(), in TEST() 288 base::TimeTicks(), in TEST() 317 base::TimeTicks(), in TEST() [all …]
|
D | url_info_unittest.cc | 16 using base::TimeTicks; 49 base::TimeTicks before_resolution_complete = TimeTicks::Now(); in TEST() 54 EXPECT_GT((TimeTicks::Now() - before_resolution_complete).InMilliseconds(), in TEST() 71 before_resolution_complete = TimeTicks::Now(); in TEST() 76 EXPECT_GT((TimeTicks::Now() - before_resolution_complete).InMilliseconds(), in TEST()
|
/external/chromium/net/url_request/ |
D | url_request_throttler_unittest.cc | 17 using base::TimeTicks; 27 : BackoffEntry(policy), fake_now_(TimeTicks()) { in MockBackoffEntry() 32 TimeTicks GetTimeNow() const { in GetTimeNow() 36 void SetFakeNow(const TimeTicks& now) { in SetFakeNow() 41 TimeTicks fake_now_; 54 const TimeTicks& exponential_backoff_release_time, in MockURLRequestThrottlerEntry() 55 const TimeTicks& sliding_window_release_time, in MockURLRequestThrottlerEntry() 56 const TimeTicks& fake_now) in MockURLRequestThrottlerEntry() 85 void ResetToBlank(const TimeTicks& time_now) { in ResetToBlank() 95 virtual TimeTicks GetTimeNow() const { return fake_time_now_; } in GetTimeNow() [all …]
|
D | url_request_throttler_entry.h | 97 const base::TimeTicks& earliest_time); 98 virtual base::TimeTicks GetExponentialBackoffReleaseTime() const; 110 virtual base::TimeTicks GetTimeNow() const; 125 base::TimeTicks sliding_window_release_time() const { in sliding_window_release_time() 130 void set_sliding_window_release_time(const base::TimeTicks& release_time) { in set_sliding_window_release_time() 141 base::TimeTicks sliding_window_release_time_; 145 std::queue<base::TimeTicks> send_log_;
|
/external/chromium/net/base/ |
D | backoff_entry_unittest.cc | 11 using base::TimeTicks; 20 now_(TimeTicks()) { in TestBackoffEntry() 23 SetCustomReleaseTime(TimeTicks()); in TestBackoffEntry() 28 virtual TimeTicks GetTimeNow() const { in GetTimeNow() 32 void set_now(const TimeTicks& now) { in set_now() 37 TimeTicks now_; 55 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); in TEST() 110 TimeTicks result = entry.GetReleaseTime(); in TEST() 146 TimeTicks result = entry.GetReleaseTime(); in TEST() 157 TimeTicks release_time = entry.GetReleaseTime(); in TEST() [all …]
|
D | host_cache_unittest.cc | 33 base::TimeTicks now; in TEST() 41 EXPECT_TRUE(cache.Lookup(Key("foobar.com"), base::TimeTicks()) == NULL); in TEST() 43 entry1 = cache.Lookup(Key("foobar.com"), base::TimeTicks()); in TEST() 51 EXPECT_TRUE(cache.Lookup(Key("foobar2.com"), base::TimeTicks()) == NULL); in TEST() 53 entry2 = cache.Lookup(Key("foobar2.com"), base::TimeTicks()); in TEST() 93 base::TimeTicks now; in TEST() 95 EXPECT_TRUE(cache.Lookup(Key("foobar.com"), base::TimeTicks()) == NULL); in TEST() 117 base::TimeTicks now; in TEST() 125 EXPECT_TRUE(cache.Lookup(Key("foobar.com"), base::TimeTicks()) == NULL); in TEST() 127 entry1 = cache.Lookup(Key("foobar.com"), base::TimeTicks()); in TEST() [all …]
|
D | dns_reload_timer.cc | 36 base::TimeTicks now = base::TimeTicks::Now(); in Expired() 37 base::TimeTicks* timer_ptr = in Expired() 38 static_cast<base::TimeTicks*>(tls_index_.Get()); in Expired() 41 timer_ptr = new base::TimeTicks(); in Expired() 42 *timer_ptr = base::TimeTicks::Now(); in Expired() 56 base::TimeTicks* tls_data = static_cast<base::TimeTicks*>(data); in SlotReturnFunction()
|
D | backoff_entry.cc | 21 exponential_backoff_release_time_ = base::TimeTicks::Now(); in BackoffEntry() 62 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime() 66 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime() 74 base::TimeTicks now = GetTimeNow(); in CanDiscard() 95 base::TimeTicks BackoffEntry::GetTimeNow() const { in GetTimeNow() 96 return base::TimeTicks::Now(); in GetTimeNow() 99 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime()
|
D | backoff_entry.h | 60 base::TimeTicks GetReleaseTime() const; 64 void SetCustomReleaseTime(const base::TimeTicks& release_time); 74 virtual base::TimeTicks GetTimeNow() const; 78 base::TimeTicks CalculateReleaseTime() const; 82 base::TimeTicks exponential_backoff_release_time_;
|
D | host_cache.h | 26 Entry(int error, const AddressList& addrlist, base::TimeTicks expiration); 33 base::TimeTicks expiration; 86 const Entry* Lookup(const Key& key, base::TimeTicks now) const; 95 base::TimeTicks now); 118 static bool CanUseEntry(const Entry* entry, const base::TimeTicks now); 122 void Compact(base::TimeTicks now, const Entry* pinned_entry);
|
/external/chromium/base/threading/ |
D | watchdog.cc | 45 ArmAtStartTime(TimeTicks::Now()); in Arm() 49 ArmAtStartTime(TimeTicks::Now() - time_delta); in ArmSomeTimeDeltaAgo() 53 void Watchdog::ArmAtStartTime(const TimeTicks start_time) { in ArmAtStartTime() 90 (TimeTicks::Now() - watchdog_->start_time_); in ThreadMain() 111 TimeTicks last_alarm_time = TimeTicks::Now(); in ThreadMain() 113 TimeDelta last_alarm_delay = TimeTicks::Now() - last_alarm_time; in ThreadMain() 133 last_debugged_alarm_time_ = TimeTicks(); in ResetStaticData() 140 TimeTicks Watchdog::last_debugged_alarm_time_ = TimeTicks();
|
/external/chromium/chrome/browser/history/ |
D | in_memory_database.cc | 87 base::TimeTicks begin_load = base::TimeTicks::Now(); in InitFromDisk() 93 base::TimeTicks end_load = base::TimeTicks::Now(); in InitFromDisk() 99 begin_load = base::TimeTicks::Now(); in InitFromDisk() 108 end_load = base::TimeTicks::Now(); in InitFromDisk() 115 begin_load = base::TimeTicks::Now(); in InitFromDisk() 122 end_load = base::TimeTicks::Now(); in InitFromDisk()
|
/external/chromium/chrome/browser/metrics/ |
D | histogram_synchronizer.cc | 17 using base::TimeTicks; 56 TimeTicks start = TimeTicks::Now(); in FetchRendererHistogramsSynchronously() 57 TimeTicks end_time = start + wait_time; in FetchRendererHistogramsSynchronously() 61 while (synchronous_renderers_pending_ > 0 && TimeTicks::Now() < end_time) { in FetchRendererHistogramsSynchronously() 62 wait_time = end_time - TimeTicks::Now(); in FetchRendererHistogramsSynchronously() 73 TimeTicks::Now() - start); in FetchRendererHistogramsSynchronously() 178 TimeTicks old_start_time; in SetCallbackTaskAndThread() 180 const TimeTicks now = TimeTicks::Now(); in SetCallbackTaskAndThread() 202 TimeTicks started; in ForceHistogramSynchronizationDoneCallback() 220 const base::TimeTicks& started) { in InternalPostTask() [all …]
|
D | thread_watcher_unittest.cc | 20 using base::TimeTicks; 60 base::TimeTicks saved_ping_time_; 76 saved_ping_time_(base::TimeTicks::Now()), in CustomThreadWatcher() 155 TimeTicks end_time = TimeTicks::Now() + wait_time; in WaitForWaitStateChange() 158 while (wait_state_ != expected_state && TimeTicks::Now() < end_time) in WaitForWaitStateChange() 159 state_changed_.TimedWait(end_time - TimeTicks::Now()); in WaitForWaitStateChange() 177 TimeTicks end_time = TimeTicks::Now() + wait_time; in WaitForStateChange() 181 TimeTicks::Now() < end_time) { in WaitForStateChange() 182 TimeDelta state_change_wait_time = end_time - TimeTicks::Now(); in WaitForStateChange() 206 TimeTicks end_time = TimeTicks::Now() + wait_time; in WaitForCheckResponse() [all …]
|
/external/chromium/chrome/browser/ui/views/ |
D | browser_actions_container_browsertest.cc | 76 base::TimeTicks start_time = base::TimeTicks::Now(); in IN_PROC_BROWSER_TEST_F() 88 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 101 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 116 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 124 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 134 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 146 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 156 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 166 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() 174 << (base::TimeTicks::Now() - start_time).InMilliseconds() in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium/chrome/browser/extensions/ |
D | extensions_quota_service.h | 47 const ListValue* args, const base::TimeTicks& event_time); 114 void Reset(const Config& config, const base::TimeTicks& start); 118 const base::TimeTicks& expiration() { return expiration_; } in expiration() 120 base::TimeTicks expiration_; 152 bool ApplyToArgs(const ListValue* args, const base::TimeTicks& event_time); 159 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time) = 0; 178 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time); 189 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time);
|
/external/chromium/chrome/browser/ |
D | jankometer.cc | 29 using base::TimeTicks; 113 TimeTicks begin_process_message_; 148 (TimeTicks::Now() - TimeTicks()).InSeconds() % (discard_count_ + 1)); in JankObserverHelper() 158 begin_process_message_ = TimeTicks::Now(); in StartProcessingTimers() 179 TimeTicks now = TimeTicks::Now(); in EndProcessingTimers() 180 if (begin_process_message_ != TimeTicks()) { in EndProcessingTimers() 196 begin_process_message_ = base::TimeTicks(); in EndProcessingTimers() 251 base::TimeTicks now = base::TimeTicks::Now(); in WillProcessTask() 297 base::TimeTicks now = base::TimeTicks::Now(); in WillProcessTask()
|
/external/chromium/net/socket/ |
D | ssl_host_info.h | 93 base::TimeTicks verification_start_time() const { in verification_start_time() 97 base::TimeTicks verification_end_time() const { in verification_end_time() 125 base::TimeTicks verification_start_time_; 126 base::TimeTicks verification_end_time_; 136 base::TimeTicks dns_lookup_start_time_; 137 base::TimeTicks cert_verification_finished_time_;
|
/external/chromium/net/socket_stream/ |
D | socket_stream_metrics.cc | 32 wait_start_time_ = base::TimeTicks::Now(); in OnWaitConnection() 36 connect_start_time_ = base::TimeTicks::Now(); in OnStartConnection() 56 connect_establish_time_ = base::TimeTicks::Now(); in OnConnected() 72 base::TimeTicks closed_time = base::TimeTicks::Now(); in OnClose()
|