Home
last modified time | relevance | path

Searched refs:ToMicroseconds (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/net/quic/congestion_control/
Drtt_stats.cc48 std::abs(smoothed_rtt_.Subtract(latest_rtt_).ToMicroseconds()))); in ExpireSmoothedMetrics()
72 DCHECK_LT(0, rtt_sample.ToMicroseconds()); in UpdateRtt()
84 rtt_sample.ToMicroseconds() / 2); in UpdateRtt()
87 kOneMinusBeta * mean_deviation_.ToMicroseconds() + in UpdateRtt()
88 kBeta * std::abs(smoothed_rtt_.Subtract(rtt_sample).ToMicroseconds())); in UpdateRtt()
91 DVLOG(1) << " smoothed_rtt(us):" << smoothed_rtt_.ToMicroseconds() in UpdateRtt()
92 << " mean_deviation(us):" << mean_deviation_.ToMicroseconds(); in UpdateRtt()
Dhybrid_slow_start.cc92 if (current_time.Subtract(last_close_ack_pair_time_).ToMicroseconds() <= in ShouldExitSlowStart()
95 if (current_time.Subtract(round_start_).ToMicroseconds() >= in ShouldExitSlowStart()
96 min_rtt.ToMicroseconds() >> 1) { in ShouldExitSlowStart()
119 int min_rtt_increase_threshold_us = min_rtt.ToMicroseconds() >> in ShouldExitSlowStart()
Dsend_algorithm_simulator.cc99 << ack_event.time_delta.ToMicroseconds() << "us"; in TransferBytes()
106 << send_event.time_delta.ToMicroseconds() << "us"; in TransferBytes()
291 DCHECK_GE(measured_rtt.ToMicroseconds(), rtt_.ToMicroseconds()); in HandlePendingAck()
Dtcp_cubic_sender.cc215 rtt_stats_->SmoothedRtt().ToMicroseconds() + in RetransmissionDelay()
216 4 * rtt_stats_->mean_deviation().ToMicroseconds()); in RetransmissionDelay()
Dpacing_sender_test.cc94 EXPECT_EQ(delay.ToMicroseconds(), in CheckPacketIsDelayed()
97 HAS_RETRANSMITTABLE_DATA).ToMicroseconds()); in CheckPacketIsDelayed()
Dcubic.cc141 (current_time.Add(delay_min).Subtract(epoch_).ToMicroseconds() << 10) / in CongestionWindowAfterAck()
Dpacing_sender.cc144 << next_packet_send_time_.Subtract(now).ToMicroseconds(); in TimeUntilSend()
Dtcp_cubic_sender_test.cc469 sender_->rtt_stats_.SmoothedRtt().ToMicroseconds()), in TEST_F()
/external/chromium_org/net/tools/quic/
Dquic_epoll_clock_test.cc20 clock.ApproximateNow().Subtract(QuicTime::Zero()).ToMicroseconds()); in TEST()
24 clock.ApproximateNow().Subtract(QuicTime::Zero()).ToMicroseconds()); in TEST()
33 clock.Now().Subtract(QuicTime::Zero()).ToMicroseconds()); in TEST()
37 clock.Now().Subtract(QuicTime::Zero()).ToMicroseconds()); in TEST()
Dquic_epoll_connection_helper_test.cc46 epoll_server_.AdvanceBy(delta.ToMicroseconds()); in TEST_F()
65 epoll_server_.AdvanceByAndCallCallbacks(delta.ToMicroseconds()); in TEST_F()
79 epoll_server_.AdvanceByExactlyAndCallCallbacks(delta.ToMicroseconds()); in TEST_F()
96 epoll_server_.AdvanceByExactlyAndCallCallbacks(delta.ToMicroseconds()); in TEST_F()
101 new_delta.Subtract(delta).ToMicroseconds()); in TEST_F()
118 epoll_server_.AdvanceByExactlyAndCallCallbacks(delta.ToMicroseconds()); in TEST_F()
127 new_delta.Subtract(delta).ToMicroseconds()); in TEST_F()
Dquic_time_wait_list_manager_test.cc288 epoll_server_.set_now_in_usec(time_wait_period.ToMicroseconds()); in TEST_F()
297 epoll_server_.set_now_in_usec(time_wait_period.Add(offset).ToMicroseconds()); in TEST_F()
301 time_wait_period.Subtract(offset).ToMicroseconds(); in TEST_F()
422 epoll_server_.set_now_in_usec(time_wait_period.Add(offset).ToMicroseconds()); in TEST_F()
425 time_wait_period.ToMicroseconds(); in TEST_F()
450 epoll_server_.set_now_in_usec(time_wait_period.ToMicroseconds() + 1); in TEST_F()
Dquic_epoll_connection_helper.cc34 deadline().Subtract(QuicTime::Zero()).ToMicroseconds(), in SetImpl()
Dquic_time_wait_list_manager.cc260 .ToMicroseconds(); in SetConnectionIdCleanUpAlarm()
267 next_alarm_interval = kTimeWaitPeriod_.ToMicroseconds(); in SetConnectionIdCleanUpAlarm()
/external/chromium_org/net/quic/
Dquic_time.cc51 int64 QuicTime::Delta::ToMicroseconds() const { in ToMicroseconds() function in net::QuicTime::Delta
56 return QuicTime::Delta::FromMicroseconds(ToMicroseconds() + in Add()
57 delta.ToMicroseconds()); in Add()
61 return QuicTime::Delta::FromMicroseconds(ToMicroseconds() - in Subtract()
62 delta.ToMicroseconds()); in Subtract()
66 return QuicTime::Delta::FromMicroseconds(ToMicroseconds() * i); in Multiply()
70 return QuicTime::Delta::FromMicroseconds(ToMicroseconds() * d); in Multiply()
Dquic_time.h55 int64 ToMicroseconds() const;
157 return lhs.ToMicroseconds() == rhs.ToMicroseconds();
163 return lhs.ToMicroseconds() < rhs.ToMicroseconds();
Dquic_bandwidth.cc50 delta.ToMicroseconds(); in FromBytesAndTimeDelta()
77 return ToBytesPerSecond() * time_period.ToMicroseconds() / in ToBytesPerPeriod()
82 return ToKBytesPerSecond() * time_period.ToMicroseconds() / in ToKBytesPerPeriod()
Dquic_connection_helper_test.cc62 EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()), in TEST_F()
80 EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()), in TEST_F()
100 EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()), in TEST_F()
158 EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()), in TEST_F()
172 new_delta.Subtract(delta).ToMicroseconds()), in TEST_F()
Dquic_time_test.cc34 EXPECT_EQ(1000, QuicTime::Delta::FromMilliseconds(1).ToMicroseconds()); in TEST()
36 EXPECT_EQ(QuicTime::Delta::FromMilliseconds(2000).ToMicroseconds(), in TEST()
37 QuicTime::Delta::FromSeconds(2).ToMicroseconds()); in TEST()
93 EXPECT_EQ(1000, diff.ToMicroseconds()); in TEST_F()
Dquic_alarm.cc35 if (std::abs(deadline.Subtract(deadline_).ToMicroseconds()) < in Update()
36 granularity.ToMicroseconds()) { in Update()
Dquic_connection_helper.cc46 int64 delay_us = deadline().Subtract(clock_->Now()).ToMicroseconds(); in SetImpl()
Dquic_framer.cc814 uint64 epoch = last_timestamp_.ToMicroseconds() & ~(epoch_delta - 1); in CalculateTimestampFromWire()
819 uint64 time = ClosestTo(last_timestamp_.ToMicroseconds(), in CalculateTimestampFromWire()
821 ClosestTo(last_timestamp_.ToMicroseconds(), in CalculateTimestampFromWire()
2065 DCHECK_LE(0u, frame.delta_time_largest_observed.ToMicroseconds()); in AppendAckFrameAndTypeByte()
2067 frame.delta_time_largest_observed.ToMicroseconds(); in AppendAckFrameAndTypeByte()
2195 static_cast<uint32>(it->second.Subtract(creation_time_).ToMicroseconds() in AppendTimestampToAckFrame()
2216 uint64 time_delta_us = it->second.Subtract(prev_time).ToMicroseconds(); in AppendTimestampToAckFrame()
Dquic_received_packet_manager.cc171 receipt_time.Subtract(time_largest_observed_).ToMicroseconds(); in RecordPacketReceived()
Dquic_connection.cc1084 sent_packet_manager_.GetRttStats()->min_rtt().ToMicroseconds(); in GetStats()
1086 sent_packet_manager_.GetRttStats()->SmoothedRtt().ToMicroseconds(); in GetStats()
1925 << " delta:" << delta.ToMicroseconds() in CheckForTimeout()
1926 << " network_timeout: " << idle_network_timeout_.ToMicroseconds(); in CheckForTimeout()
Dquic_protocol.cc383 << ack_frame.delta_time_largest_observed.ToMicroseconds() in operator <<()
/external/chromium_org/net/quic/test_tools/
Dmock_clock.cc35 now_.Subtract(QuicTime::Zero()).ToMicroseconds()); in NowInTicks()

12