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

Method __exit__

python/dolfinx/common.py:139–142  ·  view source on GitHub ↗

Stop timer and flush timing data to logger.

(self, *args)

Source from the content-addressed store, hash-verified

137 return self
138
139 def __exit__(self, *args):
140 """Stop timer and flush timing data to logger."""
141 self._cpp_object.stop()
142 self._cpp_object.flush()
143
144 def start(self) -> None:
145 """Reset elapsed time and (re-)start timer."""

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected