Skip to main content

工具介绍

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

函数介绍

kit.py

timer

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

from yekit import kit.timer as timer

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

process()

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

Metadata

Release files for yekit 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yekit 0.1.3
File Size Uploaded
yekit-0.1.3.tar.gz 1.9 kB Details

Release files / yekit-0.1.3.tar.gz

Download URL yekit-0.1.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
499a113c0cc6ade95646eaeaf789ed7062eb5099f80bb070ed1488b9d0104455
BLAKE2b-256 checksum
How to use checksums
51eec35744650e5cd8d39ef04a82bfdd5bacb5a882e08170d985225ae831a5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page