Measuring program time (timeit module)
I've been using python's timeit module for some testing, wanted to keep track here of timeit and any other methods I come across. Here's an example usage.
import timeit
start = timeit.default_timer()
#
stop = timeit.default_timer()
print(stop - start)
Note: default_timer uses time.perf_counter() as defined here
Return the value (in …