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)
| 52 | |
| 53 | |
| 54 | def 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 | |
| 68 | def list_timings(comm, reduction=Reduction.max): |