Phaser API Documentation

  Version: 
getDuration()

Description:

Gets the duration which the game has been running, in seconds.

Returns:
Description:

The duration in seconds.

Type:
  • number
Examples:
Since: 3.17.0
Source: src/core/TimeStep.js (Line 661)