Timing a python program run

i3dmaster i3dmaster at gmail.com
Sun Jul 8 11:01:52 CEST 2007

simplest way is just put a timer on start and another on the end,  
then calc the elapse. You can also take a look timeit module too  
which provides similar but more powerful functions...


On Jul 7, 2007, at 12:21 PM, David wrote:

> Hi,
> In matlab, I'd calculate the time for a script named test.m to run
> with:
>>> tic, run, toc
> Is there some way to do this in python on a mac os x from the terminal
> window? Or whatever?
> -- 
> http://mail.python.org/mailman/listinfo/python-list

More information about the Python-list mailing list