diff --git a/README.md b/README.md index c05b19e..537a3ba 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,14 @@ pip install ultralytics-autoimport Use the `lazy` context manager to defer imports: ```python -from autoimport import lazy import time +from autoimport import lazy + with lazy(): t0 = time.perf_counter() import torch + print(f"Initial import: {time.perf_counter() - t0:.3f}s") # Initial import: 0.000s t1 = time.perf_counter()