MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / __call__

Method __call__

python/pymesh/timethis.py:19–23  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

17 self.f = f
18
19 def __call__(self, *args, **kwargs):
20 self.tik()
21 r = self.f(*args, **kwargs)
22 self.tok()
23 return r
24
25 def __get__(self, obj, objtype):
26 """Support instance methods."""

Callers

nothing calls this directly

Calls 2

tikMethod · 0.95
tokMethod · 0.95

Tested by

no test coverage detected