Skip to content

Glossary: Data Structures and Algorithms

time.perf_counter()

Also written: perf_counter, time module

A function in Python's `time` module that returns a reading from a precise clock in seconds. You read it before and after some code and subtract to get the time taken.

Where the book teaches it

Related terms

Step