Challenge: Time My Functions
Time my functions with meta-programming.
We'll cover the following...
Problem statement
In this exercise, we want to time our functions. What we want is that whenever a class method executes, it should print the time taken by itself.
Let’s get into detail. Consider the scenario below while attempting the challenge.
We have an Animal
class. It has a function talk
as follows:
class
...