pub fn repeating_after_real_delay(
    duration: Duration
) -> impl FnMut(Res<'_, Time<Real>>) -> bool + Clone
Expand description

Run condition that is active indefinitely after the specified delay, using Time<Real> to advance the timer. The timer ticks are not scaled.

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(
            Update,
            tick.run_if(repeating_after_real_delay(Duration::from_secs(1))),
        )
    .run();
}
fn tick() {
    // ran every frame, after a second
}