MCPcopy
hub / github.com/MikeChongCan/scylla / cost

Method cost

scylla/tcpping.py:39–49  ·  view source on GitHub ↗
(self, funcs, args)

Source from the content-addressed store, hash-verified

37 self._stop = timer()
38
39 def cost(self, funcs, args):
40 # TODO: handle ConnectionRefusedError
41 self.start()
42 for func, arg in zip_longest(funcs, args):
43 if arg:
44 func(*arg)
45 else:
46 func()
47
48 self.stop()
49 return self._stop - self._start
50
51
52class Ping(object):

Callers 1

pingMethod · 0.80

Calls 2

startMethod · 0.95
stopMethod · 0.95

Tested by

no test coverage detected