V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  596164296  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2021-07-27 17:06:18 +08:00
回复了 596164296 创建的主题 Python Python 调用 win32api 时间问题,自认为属于高阶问题
@3dwelcome 感谢你的回复,我用的统计时间的语句为:int(round(time.time() * 1000)),精确到毫秒,我在多次测试中发现,是 22ms 左右,并不是总是 22ms,有 5ms 、7ms 、8ms 、9ms 、12ms 、15ms 、17ms 、21ms 、22ms 、25ms 甚至三十几 ms 都有,并且该代码在性能越好的电脑上时间越短,并且我之前用 c 语言测试过(很久之前了),同样是这样的情况,如果有更好的测量时间的方法,望提示,我将去试一试
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5257 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 09:18 · PVG 17:18 · LAX 02:18 · JFK 05:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.