Introduced an event base class.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 23 Nov 2011 00:38:38 +0000 (01:38 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 23 Nov 2011 00:38:38 +0000 (01:38 +0100)
pdm/perf.py

index 30f60ba..0ff02a1 100644 (file)
@@ -94,6 +94,10 @@ class staticdir(perfobj):
     def pdm_protocols(self):
         return super(staticdir, self).pdm_protocols() + ["dir"]
 
+class event(object):
+    def __init__(self):
+        self.time = time.time()
+
 sysres = staticdir()
 itime = time.time()
 ires = resource.getrusage(resource.RUSAGE_SELF)