Skip to main content

JCOtimer is a Python utility/package for measuring function runtime.

Project description

JCOtimer CI status

JCOtimer is a Python utility/package for measuring function runtime.

Installation

Requirements

  • Windows/Linux/OSX
  • Python 3.x

Check it on Pypi.

$ pip install JCOtimer

Usage

from JCOtimer.timer import timer

@timer #use as decorator
def foo():
   print('bar' * 999999)

foo() # returns 'Time it took to run the function: 0.4072580337524414 secs'

Contributing

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

License

MIT

Author

Jan Carlo E. Once

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

JCOtimer-7.0.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

JCOtimer-7.0-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

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