[name]

Object for keeping track of time.

Constructor

[name]( [page:Boolean autoStart] )

autoStart — Automatically start the clock.

Properties

.[page:Boolean autoStart]

.[page:Float startTime]

.[page:Float oldTime]

.[page:Float elapsedTime]

.[page:Boolean running]

Methods

.start()

Start clock.

.stop()

Stop clock.

.getElapsedTime() [page:Float]

Get milliseconds passed since the clock started.

.getDelta() [page:Float]

Get the milliseconds passed since the last call to this method.

Source

src/[path].js