Skip to main content

check the running time of a given functions

Project description

Runtimecheck

Originally Forked from the Time-Logger Runtimecheck is an efficient Python library to help you quickly measure your functions's running time on a jupyter noetbook

Installation

On the terminal

pip install runtimecheck

On a Jupyter Notebook

!pip install runtimecheck

Example Usage

import time

from runtimecheck.Timer import check_runtime

@check_runtime()
def hello_world():    
    time.sleep(2)
    print("Hello World")


say_hi()

Result

>> Hello World
>> hello_world ran in 2.0001 seconds

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

runtimecheck-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file runtimecheck-0.0.1.tar.gz.

File metadata

  • Download URL: runtimecheck-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for runtimecheck-0.0.1.tar.gz
Algorithm Hash digest
SHA256 71a18ddc7b1cd9b3a0f28c9a7fd2096b8be3e5a354324d197cf9dbacfca02f84
MD5 9ddcd417c3525970a705d47d6cf5de46
BLAKE2b-256 7262b183ff6ce9abd102fa88387acbcd7c5c81668077fe44bf0a0a5806b8ebe6

See more details on using hashes here.

Supported by

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