fn compute_throughput( pos: usize, connect_time: Option<Duration>, now: Duration, ) -> Option<Throughput>