Browse Source

Update doc/api/core/Clock.rst

Ivan Kuzev 13 years ago
parent
commit
71efd1119f
1 changed files with 51 additions and 3 deletions
  1. 51 3
      doc/api/core/Clock.rst

+ 51 - 3
doc/api/core/Clock.rst

@@ -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
-