From bcb622d69dc9a57a82bf4c4508086554ddab9ae9 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 23 Nov 2011 01:38:38 +0100 Subject: [PATCH] Introduced an event base class. --- pdm/perf.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.11.0