相关疑难解决方法(0)

在Python中获取计时器滴答

我只想尝试一段代码.伪代码看起来像:

start = get_ticks()
do_long_code()
print "It took " + (get_ticks() - start) + " seconds."
Run Code Online (Sandbox Code Playgroud)

这看起来如何用Python?

更具体地说,我如何得到午夜以来的滴答数(或者Python组织那个时间)?

python timer

41
推荐指数
3
解决办法
9万
查看次数

标签 统计

python ×1

timer ×1