Assume that you need to measure the execution time of some functions in your project. And you don't want to modify (insert lines of code to measure the execution time) those functions.
You can use timeit.timeit() to measure but it has a problem that is you only measure the function with no parameter.
I use the decorator technique to solve this problem. You can measure the execution time of any function. It doesn't care the number of arguments of those functions