Spaces:
Runtime error
Runtime error
Download utils/common.py from averysmithroll/cadena-stepwise-cad: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/spaces/averysmithroll/cadena-stepwise-cad/resolve/main/utils/common.py
- Command line
-
hf download hf://spaces/averysmithroll/cadena-stepwise-cad/utils/common.py
-
curl -L -o common.py https://huggingface.co/spaces/averysmithroll/cadena-stepwise-cad/resolve/main/utils/common.py
265 Bytes
| import time | |
| from contextlib import contextmanager | |
| def timer(name): | |
| start = time.perf_counter() | |
| try: | |
| yield | |
| finally: | |
| end = time.perf_counter() | |
| print(f"{name} выполнен за {end - start:.2f} секунд.") |