/// Run the circuit for a certain amount of time segmented by a step
/// The smaller the step the more accurate the simulation will be.
Run the circuit for a certain amount of time segmented by a step
The smaller the step the more accurate the simulation will be.
Run the circuit for a certain amount of time segmented by a step The smaller the step the more accurate the simulation will be .
pub fn run_during(&mut self, duration: Duration, step: Duration) {
        let mut elapsed = Duration::new(0, 0);
        while elapsed < duration {
            self.run(step);
            elapsed += step;
        }
    }
pub fn run_during ( & mut self , duration : Duration , step : Duration ) { let mut elapsed = Duration :: new ( 0 , 0 ) ; while elapsed < duration { self . run ( step ) ; elapsed += step ; } }
Run the circuit for a certain amount of time segmented by a step
The smaller the step the more accurate the simulation will be.
Run the circuit for a certain amount of time segmented by a step The smaller the step the more accurate the simulation will be .
&mut self
duration
Duration
step
Duration