[IPython-User] timing Python fragments with %time
Sat Dec 25 18:19:16 CST 2010
I'm trying to use the %time command to time fragments of Python code,
In : %time for i in range (1000):
It seems that the only way to make this work is to place the loop
inside a function definition and call that function instead. Is there
a better way?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://mail.scipy.org/pipermail/ipython-user/attachments/20101226/a7db8402/attachment.bin
More information about the IPython-User