Function gg::event::step::fixed
[−]
[src]
pub fn fixed<T>(step: u64, cb: T) where T: FnMut(f64) -> StepResultA simple and stupid loop that tries to call cb after step time has
elapsed.
step is in nanoseconds.
cb is a closure meant to return a StepResult