예제 #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
 def main():
     PERIOD = 0.1 * SECOND
     start = nanotime()
     sleep(PERIOD)
     diff = nanotime() - start
     assert PERIOD - DELTA0 <= diff <= PERIOD + DELTA
예제 #5
0
 def f2():
     sleep(T2)
     r2.append(nanotime())
예제 #6
0
 def f1():
     sleep(T1)
     r1.append(nanotime())