Skip to main content

函数计时器

Project description

计时器-zyf_timer

安装

pip install zyf_timer

使用

from zyf_timer import timeit

@timeit
def main():
    time.sleep(1)
    ...

设置保留位数,默认保留两位小数

from zyf_timer import timeit_with_digit

@timeit_with_digit(digit=4)
def main():
    time.sleep(1)
    ...

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

zyf_timer-1.2.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

zyf_timer-1.2-py3-none-any.whl (2.7 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