Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
alexnasa
/
OutofLipSync
like
29
Running
on
Zero
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
80f7eb2
OutofLipSync
/
time_util.py
alexnasa
Upload 24 files
4b1c031
verified
8 days ago
raw
Copy download link
history
blame
223 Bytes
import
time
from
contextlib
import
contextmanager
@contextmanager
def
timer
(
name:
str
):
start = time.time()
print
(
f"
{name}
..."
)
yield
print
(
f" ->
{name}
completed in
{time.time() - start:
.2
f}
sec"
)