https://github.com/cpcloud/ipython-autotime
Time everything in IPython
https://github.com/cpcloud/ipython-autotime
Last synced: about 1 year ago
JSON representation
Time everything in IPython
- Host: GitHub
- URL: https://github.com/cpcloud/ipython-autotime
- Owner: cpcloud
- License: apache-2.0
- Created: 2015-06-07T15:19:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T11:42:50.000Z (over 2 years ago)
- Last Synced: 2025-03-29T17:11:07.797Z (about 1 year ago)
- Language: Python
- Size: 46.9 KB
- Stars: 122
- Watchers: 3
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipython-autotime
Time everything in IPython
## Installation:
```console
$ pip install ipython-autotime
```
## Examples
```python
In [1]: %load_ext autotime
time: 264 µs (started: 2020-12-15 11:44:36 +01:00)
In [2]: x = 1
time: 416 µs (started: 2020-12-15 11:44:45 +01:00)
In [3]: x / 0
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
in
----> 1 x/0
ZeroDivisionError: division by zero
time: 88.7 ms (started: 2020-12-15 11:44:53 +01:00)
```
## Want to turn it off?
```python
In [4]: %unload_ext autotime
```