/// Return the simulated batch time, As time_source increases by BLOCK_TIME,
/// next batch is retrieved from the pre-computed ingress histories.
Return the simulated batch time, As time_source increases by BLOCK_TIME,
next batch is retrieved from the pre-computed ingress histories.
Return the simulated batch time As time_source increases by BLOCK_TIME next batch is retrieved from the pre - computed ingress histories .
fn batch_time(&self) -> Time {
        let mut histories = self.histories.write().unwrap();
        let mut t = histories[0].0;
        while self.time_source.get_relative_time() > t + BLOCK_TIME {
            histories.remove(0);
            t = histories[0].0;
        }
        t
    }
fn batch_time ( & self ) -> Time { let mut histories = self . histories . write ( ) . unwrap ( ) ; let mut t = histories [ 0 ] . 0 ; while self . time_source . get_relative_time ( ) > t + BLOCK_TIME { histories . remove ( 0 ) ; t = histories [ 0 ] . 0 ; } t }
Return the simulated batch time, As time_source increases by BLOCK_TIME,
next batch is retrieved from the pre-computed ingress histories.
Return the simulated batch time As time_source increases by BLOCK_TIME next batch is retrieved from the pre - computed ingress histories .
&self