AnimationTimer Class

Module: BinaryUtils

Animation timer is a special type of timer that uses the requestAnimationFrame() method.

This timer calls the method with the same rate as the screen refresh rate.

Item Index

Methods

Attributes

Methods

start

()

Start timer, is the timer is already running dosen't do anything.

stop

()

Stop animation timer.

Attributes

callback

Function

Task of the timer, executed at the timer defined rate.

running

Boolean

Indicates if the timer is currently running, it is set to true on start and reset to false on stop.

running

Number

ID of the currently waiting timeout clock. Used to cancel the already request execution of the next clock tick.