World Time and Delta

Displays the accumulated game time and the time elapsed since the last frame (delta) using the parameters provided to the Scene update method.

World Time and Delta, running
800 × 600
GitHub
class Example extends Phaser.Scene
{
    timeText;

    create ()
    {
        this.timeText = this.add.text(100, 200);
    }

    update (time, delta)
    {
        this.timeText.setText(`Time: ${time}\nDelta: ${delta}`);
    }
}

const config = {
    scale: { mode: Phaser.Scale.FIT },
    type: Phaser.CANVAS,
    width: 800,
    height: 600,
    parent: 'game-container',
    scene: Example
};

const game = new Phaser.Game(config);

More in Timestep5 examples