コード例 #1
0
 def f2():
     sleep(T2)
     r2.append(nanotime())
コード例 #2
0
 def f1():
     sleep(T1)
     r1.append(nanotime())
コード例 #3
0
 def main():
     PERIOD = 0.1 * SECOND
     start = nanotime()
     sleep(PERIOD)
     diff = nanotime() - start
     assert PERIOD - DELTA0 <= diff <= PERIOD + DELTA
コード例 #4
0
ファイル: test_core_timer.py プロジェクト: benoitc/offset
 def main():
     PERIOD = 0.1 * SECOND
     start = nanotime()
     sleep(PERIOD)
     diff = nanotime() - start
     assert PERIOD - DELTA0 <= diff <= PERIOD + DELTA
コード例 #5
0
ファイル: test_core_timer.py プロジェクト: benoitc/offset
 def f2():
     sleep(T2)
     r2.append(nanotime())
コード例 #6
0
ファイル: test_core_timer.py プロジェクト: benoitc/offset
 def f1():
     sleep(T1)
     r1.append(nanotime())