← Winnitude! Search  ·  Reader Mode (255 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
REAL PYTHON · Real Python · 13 LINKS

Python Timer Functions: Three Ways to Monitor Your Code Quiz - Real Python

Python Timer Functions: Three Ways to Monitor Your Code Quiz

Interactive Quiz ⋅ 13 Questions
By Joseph Peart

In this quiz, you'll test your understanding of Python Timer Functions: Three Ways to Monitor Your Code .

By working through this quiz, you'll revisit why time.perf_counter() is the go-to clock for timing code and how to wrap a timer in a class, a context manager, and a decorator. You'll also review timeit and cProfile for benchmarking and profiling your programs.

The quiz contains 13 questions and there is no time limit. You'll get 1 point for each correct answer. At the end of the quiz, you'll receive a total score. The maximum score is 100%. Good luck!

Start the Quiz »

Related Resources

Course

Python Timer Functions

Learn how to time your Python code with the time module, then build a reusable Timer class that works as a context manager.

intermediate python stdlib

Tutorial

Python Timer Functions: Three Ways to Monitor Your Code

Use Python timer functions to measure how quickly your code runs, and build timers with classes, context managers, and decorators.

intermediate python stdlib

All Quizzes Share Feedback