|
@@ -1,7 +1,55 @@
|
|
|
Clock - Keeps track of time
|
|
|
---------------------------
|
|
|
|
|
|
-.. js:class:: Clock()
|
|
|
+.. rubric:: Constructor
|
|
|
+
|
|
|
+**class**:: Clock([*autoStart*])
|
|
|
+
|
|
|
+.. rubric:: Attributes
|
|
|
+
|
|
|
++-------------------+----------------+-------------+
|
|
|
+| Attribute | Type | Description |
|
|
|
++===================+================+=============+
|
|
|
+| Clock.autoStart | boolean | dont know |
|
|
|
++-------------------+----------------+-------------+
|
|
|
+| Clock.startTime | long/int/float | dont know |
|
|
|
++-------------------+----------------+-------------+
|
|
|
+| Clock.oldTime | long/int/float | dont know |
|
|
|
++-------------------+----------------+-------------+
|
|
|
+| Clock.elapsedTime | long/int/float | dont know |
|
|
|
++-------------------+----------------+-------------+
|
|
|
+| Clock.running | boolean | dont know |
|
|
|
++-------------------+----------------+-------------+
|
|
|
+
|
|
|
+.. rubric:: Methods
|
|
|
+
|
|
|
+**function**::Clock.start()
|
|
|
+
|
|
|
+what does it do
|
|
|
+
|
|
|
+**function**::Clock.stop()
|
|
|
+
|
|
|
+what does it do
|
|
|
+
|
|
|
+**function**::Clock.getElapsedTime()
|
|
|
+
|
|
|
+what does it do
|
|
|
+
|
|
|
++------------+----------+-------------+
|
|
|
+| Attributes | Type | Description |
|
|
|
++============+==========+=============+
|
|
|
+| returns | ? | dont know |
|
|
|
++------------+----------+-------------+
|
|
|
+
|
|
|
+**function**::Clock.getDelta()
|
|
|
+
|
|
|
+what does it do
|
|
|
+
|
|
|
++------------+----------+-------------+
|
|
|
+| Attributes | Type | Description |
|
|
|
++============+==========+=============+
|
|
|
+| returns | ? | dont know |
|
|
|
++------------+----------+-------------+
|
|
|
+
|
|
|
+.. rubric:: Example
|
|
|
|
|
|
- Keeps track of time
|
|
|
-
|