Reputation: 713
What does %%time
mean in python? I am using python 3 and have some source code containing
%%time
Does this call the time module? or does it have another function?
Upvotes: 60
Views: 123895
Reputation: 1717
%%time
is a magic command. It's a part of IPython.
%%time
prints the wall time for the entire cell whereas %time
gives you the time for first line only
Using %%time
or %time
prints 2 values:
You can read more about it in the documentation
Upvotes: 94