(label)
| 1181 | |
| 1182 | @contextmanager |
| 1183 | def time_block(label): |
| 1184 | start = time.time() |
| 1185 | try: |
| 1186 | yield |
| 1187 | finally: |
| 1188 | end = time.time() |
| 1189 | logger.info(f"{label} elapsed time: {end - start:.2f} secs ({((end - start) / 60.0):.2f} mins)") |
| 1190 | |
| 1191 | |
| 1192 | ### TODO: weave through second round intercept. |
nothing calls this directly
no outgoing calls
no test coverage detected