根据Python3.5文档(时间模块),所有这三个函数clock_getres(clk_id), clock_gettime(clk_id)
和{
clock_getres(clk_id)
Return the resolution (precision) of the specified clockclk_id
clock_gettime(clk_id)
Return the time of the specified clockclk_id
clock_settime(clk_id, time)
Set the time of the specified clockclk_id
但是Python文档没有提到clk_id
。
有人能解释一下如何使用python得到clk_id
。在
基本上是时钟的整数标识,时钟列表可以在:https://docs.python.org/3/library/time.html
例如time.CLOCK_实时==0且单调时钟==1等 对于每一个时钟,你可以设置时间,当然每一个时钟的时间都是不同的。在
相关问题 更多 >
编程相关推荐