From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- html/SmootLight.util.TimeOps-pysrc.html | 132 ++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 html/SmootLight.util.TimeOps-pysrc.html (limited to 'html/SmootLight.util.TimeOps-pysrc.html') diff --git a/html/SmootLight.util.TimeOps-pysrc.html b/html/SmootLight.util.TimeOps-pysrc.html new file mode 100644 index 0000000..a3be363 --- /dev/null +++ b/html/SmootLight.util.TimeOps-pysrc.html @@ -0,0 +1,132 @@ + + + + + SmootLight.util.TimeOps + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package util :: + Module TimeOps + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.util.TimeOps

+
+ 1  import time as clock 
+
2 -def time(): +
3 return clock.time()*1000 #all times in MS +
4 +
5 -class Stopwatch: +
6 - def __init__(self): +
7 self.running = False + 8 self.startTime = -1 + 9 self.stopTime = -1 +
10 - def start(self): +
11 self.startTime = time() +12 self.running = True +
13 - def elapsed(self): +
14 if self.running: +15 return time()-self.startTime +16 else: +17 return self.stopTime - self.startTime +
18 - def stop(self): +
19 self.stopTime = time() +20 self.running = False +
21 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3