Skip to main content

An improved version of Time everything in IPython by Phillip Cloud

Project description

axil-autotime

An improved version of ipython-autotime by Phillip Cloud:
    – uses better timer function on Windows;
    – ignores function and class definitions.

Installation:

$ pip install axil-autotime

Usage

Run %load_ext autotime to load the extension.

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)
<ipython-input-3-034eb0c6102b> in <module>
----> 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?

In [4]: %unload_ext autotime

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axil-autotime-0.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

axil_autotime-0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file axil-autotime-0.3.tar.gz.

File metadata

  • Download URL: axil-autotime-0.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for axil-autotime-0.3.tar.gz
Algorithm Hash digest
SHA256 d68596c3f9a0af3299a1c58ee509fe0703d919f92500f79b3f123579e469fdce
MD5 1f065988547a0427441c81dcffa3bdf2
BLAKE2b-256 8e4f7730dc85fe9a0d922fe28c4c2a30368d2cbd4e38e01a3cdf756add9a00b4

See more details on using hashes here.

File details

Details for the file axil_autotime-0.3-py3-none-any.whl.

File metadata

  • Download URL: axil_autotime-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for axil_autotime-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f2ee1c77f3added307bce123df6f9484886896a3f0d0b2ec6bf8cdb9d09baf
MD5 13d1b2000bd1f646063666417cb55f41
BLAKE2b-256 b98591ecdb037592fdbdb9d4424ebffb572608b62f666fad6b3d1e320b0a2ec4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page