Skip to content

Glossary: Python Beyond the Basics

time.perf_counter

Also written: perf_counter, time.sleep

A precise clock; subtracting two readings measures how long something took. `time.sleep` pauses to pretend to wait for a slow website.

Where the book teaches it

Related terms

concurrency