Beispiel #1
0
 def f2():
     sleep(T2)
     r2.append(nanotime())
Beispiel #2
0
 def f1():
     sleep(T1)
     r1.append(nanotime())
Beispiel #3
0
 def main():
     PERIOD = 0.1 * SECOND
     start = nanotime()
     sleep(PERIOD)
     diff = nanotime() - start
     assert PERIOD - DELTA0 <= diff <= PERIOD + DELTA
Beispiel #4
0
 def main():
     PERIOD = 0.1 * SECOND
     start = nanotime()
     sleep(PERIOD)
     diff = nanotime() - start
     assert PERIOD - DELTA0 <= diff <= PERIOD + DELTA
Beispiel #5
0
 def f2():
     sleep(T2)
     r2.append(nanotime())
Beispiel #6
0
 def f1():
     sleep(T1)
     r1.append(nanotime())