Search
The time module provides a function called perf_counter(), which is used to measure the time taken to execute our code.
perf_counter()
Using it, we can see how long it takes our code to run, and optimize the code accordingly.