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.

Files for yekit, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size yekit-0.1.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page