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

Method flush

python/dolfinx/common.py:168–177  ·  view source on GitHub ↗

Flush timer duration to the logger. Note: Timer must have been stopped before flushing. Timer can be flushed only once. Subsequent calls will have no effect.

(self)

Source from the content-addressed store, hash-verified

166 return self._cpp_object.elapsed()
167
168 def flush(self) -> None:
169 """Flush timer duration to the logger.
170
171 Note:
172 Timer must have been stopped before flushing.
173
174 Timer can be flushed only once. Subsequent calls will have
175 no effect.
176 """
177 self._cpp_object.flush()
178
179
180def timed(task: str):

Callers 4

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