API Reference › Time › Time.delta
method

Time.delta

Time.delta() -> fixed

Returns the duration of one frame in seconds as a fixed — a constant 1/60, since the frame clock is fixed-step. Multiply a per-second rate by it to advance movement or timers by one frame's worth.

Example

program Demo {
  handler Step phase Update {
    x = x + speed_per_second * Time.delta()
  }
}
← All symbols