Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /rich /_timer.py
| """ | |
| Timer context manager, only used in debug. | |
| """ | |
| from time import time | |
| import contextlib | |
| from typing import Generator | |
| def timer(subject: str = "time") -> Generator[None, None, None]: | |
| """print the elapsed time. (only used in debugging)""" | |
| start = time() | |
| yield | |
| elapsed = time() - start | |
| elapsed_ms = elapsed * 1000 | |
| print(f"{subject} elapsed {elapsed_ms:.1f}ms") | |
Xet Storage Details
- Size:
- 417 Bytes
- Xet hash:
- a23f0d8826e314024323757ed73fe08c6978d3592d9444dd7e8a351ea30d5829
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.