forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClock.html
51 lines (32 loc) · 816 Bytes
/
Clock.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<h1>[name]</h1>
<div class="desc">Object for keeping track of time.</div>
<h2>Constructor</h2>
<h3>[name]( [page:Boolean autoStart] )</h3>
<div>
autoStart — Automatically start the clock.
</div>
<h2>Properties</h2>
<h3>.[page:Boolean autoStart]</h3>
<h3>.[page:Float startTime]</h3>
<h3>.[page:Float oldTime]</h3>
<h3>.[page:Float elapsedTime]</h3>
<h3>.[page:Boolean running]</h3>
<h2>Methods</h2>
<h3>.start()</h3>
<div>
Start clock.
</div>
<h3>.stop()</h3>
<div>
Stop clock.
</div>
<h3>.getElapsedTime() [page:Float]</h3>
<div>
Get milliseconds passed since the clock started.
</div>
<h3>.getDelta() [page:Float]</h3>
<div>
Get the milliseconds passed since the last call to this method.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]