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

Method elapsed

python/dolfinx/common.py:160–166  ·  view source on GitHub ↗

Return elapsed time. Returns: Elapsed time.

(self)

Source from the content-addressed store, hash-verified

158 self._cpp_object.resume()
159
160 def elapsed(self) -> datetime.timedelta:
161 """Return elapsed time.
162
163 Returns:
164 Elapsed time.
165 """
166 return self._cpp_object.elapsed()
167
168 def flush(self) -> None:
169 """Flush timer duration to the logger.

Callers 2

test_timerFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_timerFunction · 0.76