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

Method __init__

python/dolfinx/common.py:126–132  ·  view source on GitHub ↗

Create timer. Args: name: Identifier to use when storing elapsed time in logger.

(self, name: str | None = None)

Source from the content-addressed store, hash-verified

124 _cpp_object: _cpp.common.Timer
125
126 def __init__(self, name: str | None = None):
127 """Create timer.
128
129 Args:
130 name: Identifier to use when storing elapsed time in logger.
131 """
132 self._cpp_object = _cpp.common.Timer(name)
133
134 def __enter__(self):
135 """Start timer."""

Callers

nothing calls this directly

Calls 1

TimerMethod · 0.80

Tested by

no test coverage detected