世界上最美妙的时间测量对象。
项目描述
时间强盗
用于 Python 3.5+ 开发的计时器实用程序
这些是方便的自动化和信息实用程序。添加更多,更改一些,进行一些添加/更正......
请随时提供建议和更改。
版权所有 © 1976-2020 Michael Treanor
安装
TLDR:克隆 repo 并运行./setup.sh
为什么?
- 不同方法的比较
- 使用装饰器和日志阅读器在现实世界负载下分析功能
- 以独特的方式可视化结果
先决条件
- Python 3.5+ 版本
推荐的 IDE 设置:
- VSCode IDE
- Sarah Drasner的 Vue VSCode扩展包
- Don Jayamanne的 Python扩展包
根据需要通过此设置安装:
安装
pip install timebandit
- or -
如果您希望对开源项目进行修改或贡献:
# clone the repo
git clone https://www.github.com/skeptycal/
# change to the repo directory
cd user_bin_dir_repo
# run the init script
./init
# optional: # use './init --nobrew' to skip install of homebrew and utilities
./init --nobrew
用法
from timebandit import timeit
# as a decorator
@timeit
def myfunction(x):
... do stuff ...
# - or -
# as a function call
the_result = timeit(myfunction(5))
print(the_result)
反馈
欢迎提出建议/改进!
作者
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
timebandit-0.1.1.tar.gz
(12.0 kB
查看哈希)
内置分布
timebandit-0.1.1-py3-none-any.whl
(11.7 kB
查看哈希)
关
timebandit -0.1.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e0b6928475f5db8000de66245f576d3ad585bcf387feafa890f500c632109fbd |
|
MD5 | b84fed5f721577e5799f5fd98ac9ab56 |
|
布莱克2-256 | f8cc48d12446543f392e31aa487dbb53cff0e1a2800f51ce79d93c6c56a675ad |
关
timebandit -0.1.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 1b81bbe625185a6c7160fafeac714f4725609973d87fc40c14acd95fab801e5c |
|
MD5 | f0519eff6e7a82e4ff34d5543409c9bd |
|
布莱克2-256 | ed204d05d09f4ce316b044c4a3b78fb89f2f8b78a90df7ae66132313c15fb27f |