Python get the total execution time of a function
Python get the total execution time of a function Question: Suppose that I have a function: def func(x): time.sleep(x) return x It will be called in every place when needed, for example, func_a in class A, func_b in class B… And all the modules start from a main function, main(). Now I want to statistic …