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
Release history Release notifications | RSS feed
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 hashes)