Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Generative AI) expand_more
Generative AI / Evaluation & Safety

Latency measurement

Learn Latency measurement in Generative AI with a focused explanation, a topic-specific example, and a mastery check.

12 min read • Intermediate
generative-ai-031.py
python
from time import perf_counter,sleep
start=perf_counter(); sleep(.01); elapsed=(perf_counter()-start)*1000
print(round(elapsed,2),'ms')
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content