You've written this before.

        
*15 lines
But it's easier to write this.

        
1 line. Every call is timed automatically.
And you get all of this and more. For free.
mean
0.042s
median
0.038s
stdev
0.012s
p95
0.067s
p99
0.091s
min
0.021s
max
0.134s
variance
0.00014
timeit gives you one number. @timethis gives you all of this and more.
1 line. 2 ways.
Decorator

            
Context Manager

            
With these 2 patterns, you can time anything.