[name]

Object for keeping track of time.

Constructor

[name]( [page:Boolean autoStart] )

autoStart — Automatically start the clock.

Properties

[property:Boolean autoStart]

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

[property: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.

[property: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.

[property: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.

[property:Boolean running]

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

Methods

[method:null start]()

Starts clock.

[method:null stop]()

Stops clock.

[method:Float getElapsedTime]()

Get the seconds passed since the clock started.

[method:Float getDelta]()

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]