示例#1
0
 def monotonic():
     return clock_gettime(CLOCK_MONOTONIC)
示例#2
0
 def test_clock_monotonic(self):
     from __pypy__ import time
     a = time.clock_gettime(time.CLOCK_MONOTONIC)
     b = time.clock_gettime(time.CLOCK_MONOTONIC)
     assert a <= b
示例#3
0
文件: utils.py 项目: alex/tracebin
 def high_res_time():
     return time.clock_gettime(time.CLOCK_MONOTONIC_RAW)
示例#4
0
 def test_clock_realtime(self):
     from __pypy__ import time
     res = time.clock_gettime(time.CLOCK_REALTIME)
     assert isinstance(res, float)