Function SceneTree.createTimer

Returns a SceneTreeTimer which will SceneTreeTimer.timeout after the given time in seconds elapsed in this SceneTree. If pause_mode_process is set to false, pausing the SceneTree will also pause the timer. Commonly used to create a one-shot delay timer as in the following example:

godot.d.reference.Ref!(godot.scenetreetimer.SceneTreeTimer) createTimer (
  const(double) time_sec,
  const(bool) pause_mode_process = true
) nothrow @nogc;

func some_function(): print("start") yield(get_tree().create_timer(1.0), "timeout") print("end")