From cf92fe1479ffbca87c906fe64874b9dc0af8a2c9 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Tue, 23 Sep 2008 05:25:45 +0800 Subject: [PATCH] add a tick interface from tick import tick to use it --- src/tick.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/tick.py diff --git a/src/tick.py b/src/tick.py new file mode 100644 index 0000000..ce8a19c --- /dev/null +++ b/src/tick.py @@ -0,0 +1,10 @@ + +from time import time +class tick: + def __init__(self): + self.timep = time() + + def tick(self, msg): + print msg + ':', time() - self.timep, 's' + self.timep = time() + -- 2.11.4.GIT