• Home
  • Raw
  • Download

Lines Matching refs:Instant

35 use std::time::Instant;
43 delivered_time: Option<Instant>,
45 recent_delivered_packet_sent_time: Option<Instant>,
53 pub fn on_packet_sent(&mut self, pkt: &mut Sent, now: Instant) { in on_packet_sent() argument
71 pub fn on_packet_acked(&mut self, pkt: &Sent, now: Instant) { in on_packet_acked() argument
160 prior_time: Option<Instant>,
197 time_sent: Instant::now(), in rate_check()
204 delivered_time: Instant::now(), in rate_check()
205 recent_delivered_packet_sent_time: Instant::now(), in rate_check()
212 .on_packet_sent(&mut pkt_1, Instant::now()); in rate_check()
216 .on_packet_acked(&pkt_1, Instant::now()); in rate_check()
221 time_sent: Instant::now(), in rate_check()
228 delivered_time: Instant::now(), in rate_check()
229 recent_delivered_packet_sent_time: Instant::now(), in rate_check()
236 .on_packet_sent(&mut pkt_2, Instant::now()); in rate_check()
240 .on_packet_acked(&pkt_2, Instant::now()); in rate_check()
254 time_sent: Instant::now(), in app_limited_check()
261 delivered_time: Instant::now(), in app_limited_check()
262 recent_delivered_packet_sent_time: Instant::now(), in app_limited_check()
269 .on_packet_sent(&mut pkt_1, Instant::now()); in app_limited_check()
271 recvry.delivery_rate.on_packet_acked(&pkt_1, Instant::now()); in app_limited_check()
276 time_sent: Instant::now(), in app_limited_check()
283 delivered_time: Instant::now(), in app_limited_check()
284 recent_delivered_packet_sent_time: Instant::now(), in app_limited_check()
295 .on_packet_sent(&mut pkt_2, Instant::now()); in app_limited_check()
297 recvry.delivery_rate.on_packet_acked(&pkt_2, Instant::now()); in app_limited_check()