add a tick interface
[Laueye.git] / src / tick.py
blobce8a19c63fb096f6eb5b159345855928a9c6a4f8
2 from time import time
3 class tick:
4 def __init__(self):
5 self.timep = time()
7 def tick(self, msg):
8 print msg + ':', time() - self.timep, 's'
9 self.timep = time()