MCPcopy Create free account
hub / github.com/aws/clock-bound / min_rtt

Method min_rtt

clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:101–103  ·  view source on GitHub ↗

Return the value with the lowest rtt in the `ring_buffer`

(&self)

Source from the content-addressed store, hash-verified

99impl<T: TscRtt> RingBuffer<T> {
100 /// Return the value with the lowest rtt in the `ring_buffer`
101 pub fn min_rtt(&self) -> Option<&T> {
102 self.buffer.iter().min_by_key(|v| v.rtt())
103 }
104
105 /// Return the value with the lowest rtt in the specified quarter of the ring buffer.
106 ///

Callers 7

min_rttFunction · 0.80
feed_internal_buffersMethod · 0.80
calculate_thetaMethod · 0.80
feed_internal_buffersMethod · 0.80
calculate_thetaMethod · 0.80

Calls 2

iterMethod · 0.45
rttMethod · 0.45

Tested by 1

min_rttFunction · 0.64