Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Core.TimeStep
getDuration()
Description:
Gets the duration which the game has been running, in seconds.
Returns:
Description:
The duration in seconds.
Type:
number
Since:
3.17.0
Source:
src/core/TimeStep.js
(Line
820
)
Possible examples