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

Method stop

python/dolfinx/common.py:148–154  ·  view source on GitHub ↗

Stop timer and return elapsed time. Returns: Elapsed time.

(self)

Source from the content-addressed store, hash-verified

146 self._cpp_object.start()
147
148 def stop(self) -> datetime.timedelta:
149 """Stop timer and return elapsed time.
150
151 Returns:
152 Elapsed time.
153 """
154 return self._cpp_object.stop()
155
156 def resume(self) -> None:
157 """Resume timer."""

Callers 3

test_timerFunction · 0.95
test_timer_flush_stopFunction · 0.95
__exit__Method · 0.45

Calls

no outgoing calls

Tested by 2

test_timerFunction · 0.76
test_timer_flush_stopFunction · 0.76