Hint: You can adjust the default video playback speed in your account settings.

Timing Functions With Decorators

In this lesson, you’ll see how to use decorators to measure the time a function takes to execute and print the duration to the console.

Comments & Discussion

Alan Eng on May 7, 2019

Mind = blown. The real-world examples really solidify my knowledge! Thanks.

LJIN Lab on Aug. 10, 2019

I’ve been timing my functions like a freaking caveman. I love you man.

Become a Member to join the conversation.