Clock.html 817 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <h1>[name]</h1>
  2. <div class="desc">Object for keeping track of time.</div>
  3. <h2>Constructor</h2>
  4. <h3>[name]( [page:Boolean autoStart] )</h3>
  5. <div>
  6. autoStart — Automatically start the clock.
  7. </div>
  8. <h2>Properties</h2>
  9. <h3>.[page:Boolean autoStart]</h3>
  10. <h3>.[page:Float startTime]</h3>
  11. <h3>.[page:Float oldTime]</h3>
  12. <h3>.[page:Float elapsedTime]</h3>
  13. <h3>.[page:Boolean running]</h3>
  14. <h2>Methods</h2>
  15. <h3>.start()</h3>
  16. <div>
  17. Start clock.
  18. </div>
  19. <h3>.stop()</h3>
  20. <div>
  21. Stop clock.
  22. </div>
  23. <h3>.getElapsedTime() [page:Float]</h3>
  24. <div>
  25. Get milliseconds passed since the clock started.
  26. </div>
  27. <h3>.getDelta() [page:Float]</h3>
  28. <div>
  29. Get the milliseconds passed since the last call to this method.
  30. </div>
  31. <h2>Source</h2>
  32. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]