comparison test.py @ 0:1c0396a8fff4 default tip

Import
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 03 Jul 2015 21:00:16 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1c0396a8fff4
1 import clock
2
3 # print clock.gettime()
4 # clock.nanosleep(clock.timespec(1))
5 # print clock.gettime()
6
7 # t = clock.gettime()
8 # print t
9 # t.sec += 1
10 # print t
11 # clock.nanosleep(t, absolute=True)
12 # print clock.gettime()
13
14 # t += 1
15 # print t
16
17 t = clock.gettime()
18 print t
19 for x in range(10):
20 t.nsec += 10
21 print t
22 clock.nanosleep(t, absolute=True)