Which is better to use for timing in Python? time.clock() or time.time()? Which one provides more accuracy?
for example:
start = time.clock() ... do
Others have answered re: time.time() vs. time.clock().
time.time()
time.clock()
However, if you're timing the execution of a block of code for benchmarking/profiling purposes, you should take a look at the timeit module.