pub fn estimated_time_till_slot(&self, target_slot: Slot) -> Option<f64> {
        let (prev_slot, _) = self.0.last()?;
        let slots_per_second = self.slots_per_second()?;

        if target_slot > *prev_slot && slots_per_second > 0.0 {
            let distance = (target_slot - *prev_slot).as_u64() as f64;
            Some(distance / slots_per_second)
        } else {
            None
        }
    }
/// Returns the time we should reach the given `slot`, judging by the latest observation and
/// historical average syncing time.
///
/// Returns `None` if the slot is prior to our latest observed slot or we have not made any
/// observations.
Returns the time we should reach the given `slot`, judging by the latest observation and
historical average syncing time.

Returns `None` if the slot is prior to our latest observed slot or we have not made any
observations.
Returns the time we should reach the given ` slot ` judging by the latest observation and historical average syncing time . Returns ` None ` if the slot is prior to our latest observed slot or we have not made any observations .
pub fn estimated_time_till_slot(&self, target_slot: Slot) -> Option<f64> {
        let (prev_slot, _) = self.0.last()?;
        let slots_per_second = self.slots_per_second()?;
        if target_slot > *prev_slot && slots_per_second > 0.0 {
            let distance = (target_slot - *prev_slot).as_u64() as f64;
            Some(distance / slots_per_second)
        } else {
            None
        }
    }
pub fn estimated_time_till_slot ( & self , target_slot : Slot ) -> Option < f64 > { let ( prev_slot , _ ) = self . 0 . last ( ) ? ; let slots_per_second = self . slots_per_second ( ) ? ; if target_slot > * prev_slot && slots_per_second > 0.0 { let distance = ( target_slot - * prev_slot ) . as_u64 ( ) as f64 ; Some ( distance / slots_per_second ) } else { None } }
Returns the time we should reach the given `slot`, judging by the latest observation and
historical average syncing time.
Returns the time we should reach the given ` slot ` judging by the latest observation and historical average syncing time .
&self
target_slot
Slot