I\'d like to time how long does the subprocess take. I tried to use
start = time.time() subprocess.call(\'....\') elapsed = (time.time() - start)
This is more accurate:
from timeit import timeit print timeit(stmt = "subprocess.call('...')", setup = "import subprocess", number = 100)