MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __enter__

Method __enter__

utils/stopwatch.py:109–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 self.__first = True
108
109 def __enter__(self):
110 self.start = Stopwatch._tfunc()
111 return self
112
113 def __exit__(self, type_, value, traceback):
114 # https://docs.python.org/2.7/reference/datamodel.html?highlight=__enter__#object.__exit__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected