I’m writing a python program containing a class. I want to find out the running speed of each method in my class because the overall running speed of my program is obviously lowered by my class. Is there any possible way to print out the running speed of each method cause I want to find the bottleneck of the computation.
I searched online and find a method called @decorator, but I don’t know how to use it exactly. I think there must be other methods to do this.