API Reference › Clock › Clock.advance
method

Clock.advance

Clock.advance(span)

Moves the simulated clock forward by span seconds — pair it with the Duration.* constructors. Advance it by a fixed step each tick to drive a deterministic day/night or season cycle.

Example

program Demo {
  handler Step phase Update {
    Clock.advance(Duration.minutes(1))   # one in-game minute per call
  }
}
← All symbols