Macro krabmaga::simulate_old
source · macro_rules! simulate_old { ($s:expr, $step:expr, $reps:expr $(, $info:expr)?) => { ... }; }
Expand description
Run simulations using this macro. Not based on Simulation Terminal
.
Return execution times of each repetition.
Arguments
-
s
- instance of state of simulation -
step
- number of steps to be simulated -
reps
- number of repetitions -
info
- type of info you want to display during and after simulation. SeeInfo
enum for more information.
Example
// Create a simulation
let mut state = State::new();
let step = 100;
let reps = 10;
let info = Info::Normal; //Info::Verbose
let times = simulate_old!(state, step, reps, info);