Mercurial > code > home > repos > light9
annotate 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 |
rev | line source |
---|---|
247 | 1 #!/usr/bin/python |
2 """ | |
3 records times coming out of ascoltami | |
4 | |
5 for example: | |
6 | |
7 % mpd_timing_test > timing | |
8 # play some music in ascoltami, then ctrl-c | |
9 % gnuplot | |
10 > plot "timing" with lines | |
11 | |
12 """ | |
13 | |
14 import xmlrpclib, time | |
15 | |
433
a6f4a5b2647c
convert music to ogg, since mpd seeking in .wav is broken this year
drewp@bigasterisk.com
parents:
312
diff
changeset
|
16 s = xmlrpclib.ServerProxy("http://localhost:8040") |
247 | 17 start = time.time() |
18 while 1: | |
1858 | 19 print time.time() - start, s.gettime() |
247 | 20 time.sleep(.01) |