Manage the timers and times elapsed during last frame, since the beginning of the scene and other time related values. All durations are expressed in milliseconds.

Constructors

Methods

  • Return the time elapsed since the last call to update (i.e: the last frame), in milliseconds.

    Returns number

  • Get the time since the instantiation of the manager (i.e: since the beginning of the scene most of the time), in milliseconds.

    Returns number

  • Return true if update was called only once (i.e: if the scene is rendering its first frame).

    Returns boolean

  • Set the time scale: time will be slower if time scale is < 1, faster if > 1.

    Parameters

    • timeScale: number

      The new time scale (must be positive).

    Returns void