MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __enter__

Method __enter__

python/dolfinx/common.py:134–137  ·  view source on GitHub ↗

Start timer.

(self)

Source from the content-addressed store, hash-verified

132 self._cpp_object = _cpp.common.Timer(name)
133
134 def __enter__(self):
135 """Start timer."""
136 self._cpp_object.start()
137 return self
138
139 def __exit__(self, *args):
140 """Stop timer and flush timing data to logger."""

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected