Skip to main content

a useful toolkit

Project description

工具介绍

本工具是看了ShichaoMa的项目写出来的,因为我觉得有很多功能,用装饰器的方式会更好。

函数介绍

kit.py

timer

装饰器函数,用于计算func运行耗时,并将运行时间输出至屏幕上,结果保留小数点后3位。

from yekit import kit.timer as timer

@timer
def process():
    some operations...

process()

输出结果会将process的运行时间打印到console中。

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

yekit-0.1.3.tar.gz (1.9 kB view hashes)

Uploaded Source

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