Skip to main content

measure

Function measure 

Source
pub async fn measure<Q: Message, R: Message>(
    node: &Node<Q, R>,
    peer: PeerId,
    addrs: &[Multiaddr],
    local: &ClockFn,
    probes: usize,
) -> Result<ClockSample, StreamError>
Expand description

Measure the clock of peer (reached through addrs if not connected) with probes exchanges and keep the one with the shortest round trip.