Clock.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Clock - Keeps track of time
  2. ---------------------------
  3. .. rubric:: Constructor
  4. **class**:: Clock([*autoStart*])
  5. .. rubric:: Attributes
  6. +-------------------+----------------+-------------+
  7. | Attribute | Type | Description |
  8. +===================+================+=============+
  9. | Clock.autoStart | boolean | dont know |
  10. +-------------------+----------------+-------------+
  11. | Clock.startTime | long/int/float | dont know |
  12. +-------------------+----------------+-------------+
  13. | Clock.oldTime | long/int/float | dont know |
  14. +-------------------+----------------+-------------+
  15. | Clock.elapsedTime | long/int/float | dont know |
  16. +-------------------+----------------+-------------+
  17. | Clock.running | boolean | dont know |
  18. +-------------------+----------------+-------------+
  19. .. rubric:: Methods
  20. **function**::Clock.start()
  21. what does it do
  22. **function**::Clock.stop()
  23. what does it do
  24. **function**::Clock.getElapsedTime()
  25. what does it do
  26. +------------+----------+-------------+
  27. | Attributes | Type | Description |
  28. +============+==========+=============+
  29. | returns | ? | dont know |
  30. +------------+----------+-------------+
  31. **function**::Clock.getDelta()
  32. what does it do
  33. +------------+----------+-------------+
  34. | Attributes | Type | Description |
  35. +============+==========+=============+
  36. | returns | ? | dont know |
  37. +------------+----------+-------------+
  38. .. rubric:: Example