Skip to content

canast02/ipython-autotime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipython-autotime

Time everything in IPython

Installation:

%install_ext https://raw.github.com/cpcloud/ipython-autotime/master/autotime.py

Examples

In [1]: %install_ext https://raw.github.com/cpcloud/ipython-autotime/master/autotime.py
Installed autotime.py. To use it, type:
  %load_ext autotime

In [2]: %load_ext autotime
time: 1433692.87 s

In [3]: x = 1
time: 730.99 us

In [4]: x + 2
Out[4]: 3
time: 2.50 ms

In [5]: x + ''
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-bde712cacec5> in <module>()
----> 1 x + ''

TypeError: unsupported operand type(s) for +: 'int' and 'str'
time: 156.05 ms

Want to turn it off?

In [5]: %unload_ext autotime

About

Time everything in IPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%