Clock.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">Object for keeping track of time.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Boolean autoStart] )</h3>
  15. <div>
  16. autoStart — Automatically start the clock.
  17. </div>
  18. <h2>Properties</h2>
  19. <h3>[property:Boolean autoStart]</h3>
  20. <div>
  21. If set, starts the clock automatically when the first update is called.
  22. </div>
  23. <h3>[property:Float startTime]</h3>
  24. <div>
  25. When the clock is running, It holds the start time of the clock. <br />
  26. This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
  27. </div>
  28. <h3>[property:Float oldTime]</h3>
  29. <div>
  30. When the clock is running, It holds the previous time from a update.<br />
  31. This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
  32. </div>
  33. <h3>[property:Float elapsedTime]</h3>
  34. <div>
  35. When the clock is running, It holds the time elapsed between the start of the clock to the previous update.<br />
  36. This counted from the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
  37. </div>
  38. <h3>[property:Boolean running]</h3>
  39. <div>
  40. This property keeps track whether the clock is running or not.
  41. </div>
  42. <h2>Methods</h2>
  43. <h3>[method:null start]()</h3>
  44. <div>
  45. Starts clock.
  46. </div>
  47. <h3>[method:null stop]()</h3>
  48. <div>
  49. Stops clock.
  50. </div>
  51. <h3>[method:Float getElapsedTime]()</h3>
  52. <div>
  53. Get the seconds passed since the clock started.
  54. </div>
  55. <h3>[method:Float getDelta]()</h3>
  56. <div>
  57. Get the seconds passed since the last call to this method.
  58. </div>
  59. <h2>Source</h2>
  60. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  61. </body>
  62. </html>