A simple python timer module.一个简单的Python计时器模块,其中包含Timer类。
Project description
A simple python timer module.一个简单的Python计时器模块,其中包含Timer类。示例1:import timert=timer.Timer() #初始化Timer对象do_something()t.printtime() #输出执行do_something()所用时间 (使用t.gettime()获取所用时间更快)示例2:import timerwith timer.Timer(): #在这里开始计时 do_something()#退出with语句时自动打印出所用时间。 注:由于上传问题,说明暂无法正常显示。详见模块内的文档字符串。See doc string in this module for more info.
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
py-timer-1.1.1.tar.gz
(1.8 kB
view details)
File details
Details for the file py-timer-1.1.1.tar.gz
.
File metadata
- Download URL: py-timer-1.1.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d4d506274475996764b908ea70c7cdef533ef24b5a54071b446c9531eedffe |
|
MD5 | 5e78d2b96a202d6e5ad451958f6d5b6c |
|
BLAKE2b-256 | 4dad769b662d0c75d565f51d2ed501b4ed985972844a9c758928761caf725faf |