[name]

Object for keeping track of time.

Constructor

[name]( [page:Boolean autoStart] )

autoStart — Automatically start the clock.

Properties

.[page:Boolean autoStart]

If set, starts the clock automatically when the first update is called.

.[page:Float startTime]

When the clock is running, It holds the start time of the clock.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.

.[page:Float oldTime]

When the clock is running, It holds the previous time from a update.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.

.[page:Float elapsedTime]

When the clock is running, It holds the time elapsed between the start of the clock to the previous update.
This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.

.[page:Boolean running]

This property keeps track whether the clock is running or not.

Methods

.start()

Starts clock.

.stop()

Stops clock.

.getElapsedTime() [page:Float]

Get the seconds passed since the clock started.

.getDelta() [page:Float]

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

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]