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 details)
File details
Details for the file yekit-0.1.3.tar.gz.
File metadata
- Download URL: yekit-0.1.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499a113c0cc6ade95646eaeaf789ed7062eb5099f80bb070ed1488b9d0104455
|
|
| MD5 |
53779c5533759552074ddf8508e9ff0e
|
|
| BLAKE2b-256 |
51eec35744650e5cd8d39ef04a82bfdd5bacb5a882e08170d985225ae831a5a3
|