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

Function timing

python/dolfinx/common.py:54–65  ·  view source on GitHub ↗

Return the logged elapsed time. Timing data is for the calling process. Arguments: task: The task name using when logging the time. Returns: (number of times logged, total wall time)

(task: str)

Source from the content-addressed store, hash-verified

52
53
54def timing(task: str) -> tuple[int, datetime.timedelta]:
55 """Return the logged elapsed time.
56
57 Timing data is for the calling process.
58
59 Arguments:
60 task: The task name using when logging the time.
61
62 Returns:
63 (number of times logged, total wall time)
64 """
65 return _cpp.common.timing(task)
66
67
68def list_timings(comm, reduction=Reduction.max):

Callers

nothing calls this directly

Calls 1

timingMethod · 0.45

Tested by

no test coverage detected