pub fn duration_to_next_fork(&self) -> Option<Duration> {
        let epoch = self.spec.next_fork_epoch()?;
        self.slot_clock
            .duration_to_slot(epoch.start_slot(T::EthSpec::slots_per_epoch()))
    }
/// Calculates the `Duration` to the next fork, if one exists.
Calculates the `Duration` to the next fork, if one exists.
Calculates the ` Duration ` to the next fork if one exists .
pub fn duration_to_next_fork(&self) -> Option<Duration> {
        let epoch = self.spec.next_fork_epoch()?;
        self.slot_clock
            .duration_to_slot(epoch.start_slot(T::EthSpec::slots_per_epoch()))
    }
pub fn duration_to_next_fork ( & self ) -> Option < Duration > { let epoch = self . spec . next_fork_epoch ( ) ? ; self . slot_clock . duration_to_slot ( epoch . start_slot ( T :: EthSpec :: slots_per_epoch ( ) ) ) }
Calculates the `Duration` to the next fork, if one exists.
Calculates the ` Duration ` to the next fork if one exists .
&self