Mercurial > code > home > repos > light9
comparison bin/mpd_timing_test @ 1858:7772cc48e016
reformat all python
Ignore-this: 1135b78893f8b3d31badddda7f45678f
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 May 2019 23:56:12 +0000 |
parents | a6f4a5b2647c |
children | f066d6e874db |
comparison
equal
deleted
inserted
replaced
1857:3f1b9b9b0505 | 1858:7772cc48e016 |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | |
3 """ | 2 """ |
4 records times coming out of ascoltami | 3 records times coming out of ascoltami |
5 | 4 |
6 for example: | 5 for example: |
7 | 6 |
15 import xmlrpclib, time | 14 import xmlrpclib, time |
16 | 15 |
17 s = xmlrpclib.ServerProxy("http://localhost:8040") | 16 s = xmlrpclib.ServerProxy("http://localhost:8040") |
18 start = time.time() | 17 start = time.time() |
19 while 1: | 18 while 1: |
20 print time.time()-start,s.gettime() | 19 print time.time() - start, s.gettime() |
21 time.sleep(.01) | 20 time.sleep(.01) |