Function gg::event::step::fixed
[−]
[src]
pub fn fixed<T>(step: u64, cb: T) where T: FnMut(f64) -> StepResult
A 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