MCPcopy Create free account
hub / github.com/Atrovast/THGS / __enter__

Method __enter__

utils/linetimer.py:60–69  ·  view source on GitHub ↗

Start measuring at the start of indent :return: CodeTimer object

(self)

Source from the content-addressed store, hash-verified

58 self.threshold = threshold
59
60 def __enter__(self):
61 """
62 Start measuring at the start of indent
63
64 :return: CodeTimer object
65 """
66
67 self.start = timeit.default_timer()
68
69 return self
70
71 def __exit__(self, exc_type, exc_value, traceback):
72 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected