OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Difference between %time vs %%time vs %timeit %%timeit in Jupyter Notebook

  • Thread starter Thread starter Dhamodharan R
  • Start date Start date
D

Dhamodharan R

Guest
Help me in finding out the exact difference between time and timeit magic commands in jupyter notebook.

Code:
%time

a="stack overflow"
time.sleep(2)
print(a)
It shows only some micro seconds, But I added sleep time as 2 seconds
<p>Help me in finding out the exact difference between time and timeit magic commands in jupyter notebook.</p>
<pre><code>%time

a="stack overflow"
time.sleep(2)
print(a)
</code></pre>
<blockquote>
<p>It shows only some micro seconds, But I added sleep time as 2 seconds</p>
</blockquote>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top