summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringService/debugger.py
blob: e488fb6cf7e25fef585279db078eca52d66a6d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from time import time

class d(object):
	def __init__(self, n = None):
		self.n = n
		self.c = 0
		self.t = time()
	def __str__(self):
		t = time()
		self.c += 1
		r = "%s %d %f" % (self.n, self.c, t-self.t)
		self.t = t
		return r