clockit-0.2.4
توضیحات
Tool for timing the execution of Python functions
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | clockit-0.2.4 |
| نام | clockit |
| نسخه کتابخانه | 0.2.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Renzo Lucioni |
| ایمیل نویسنده | renzo@lucioni.email |
| آدرس صفحه اصلی | https://github.com/rlucioni/clockit |
| آدرس اینترنتی | https://pypi.org/project/clockit/ |
| مجوز | MIT |
clockit |PyPI|_ |Travis|_
=========================
.. |PyPI| image:: https://img.shields.io/pypi/v/clockit.svg?style=flat-square&maxAge=3600
.. _PyPI: https://pypi.python.org/pypi/clockit
.. |Travis| image:: https://img.shields.io/travis/rlucioni/clockit.svg?style=flat-square&maxAge=3600
.. _Travis: https://travis-ci.org/rlucioni/clockit
Tool for timing the execution of Python functions.
Installation
------------
Install with ``pip``::
pip install clockit
Usage
-----
Run as follows::
$ python
>>> from clockit import clockit
>>> def f(x, y=1):
... return x, y
...
>>> clocked = clockit(f, 1, y=2)
>>> clocked.result
(1, 2)
>>> clocked.time
0.0005593200330622494
``clockit`` uses the ``timeit`` module which accepts objects that are callable without arguments.
نحوه نصب
نصب پکیج whl clockit-0.2.4:
pip install clockit-0.2.4.whl
نصب پکیج tar.gz clockit-0.2.4:
pip install clockit-0.2.4.tar.gz