From: Fredrik Tolf Date: Wed, 23 Nov 2011 00:38:38 +0000 (+0100) Subject: Introduced an event base class. X-Git-Tag: 0.1~14 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=bcb622d69dc9a57a82bf4c4508086554ddab9ae9;p=pdm.git Introduced an event base class. --- diff --git a/pdm/perf.py b/pdm/perf.py index 30f60ba..0ff02a1 100644 --- a/pdm/perf.py +++ b/pdm/perf.py @@ -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)