Clock

Clock

Handles time management for the game.

Constructor

new Clock()

Source:

Methods

update(accumulateopt)

Description:
  • Updates the clock
Source:
Deprecated:
  • Yes
Parameters:
Name Type Attributes Description
accumulate number <optional>

(static) getDelta(clock)

Description:
  • Gets the time between two frames/ticks clock
Source:
Parameters:
Name Type Description
clock Clock

(static) getElapsed(clock)

Description:
  • Gets the elapsed time of the clock
Source:
Parameters:
Name Type Description
clock Clock

(static) getFrameRate(clock)

Description:
  • Gets the frameRate of the clock
Source:
Parameters:
Name Type Description
clock Clock

(static) start(clock)

Description:
  • starts the clock
Source:
Parameters:
Name Type Description
clock Clock

(static) update(clock, accumulateopt)

Description:
  • Updates the clock
Source:
Parameters:
Name Type Attributes Description
clock Clock
accumulate number <optional>