Mercurial > code > home > repos > light9
annotate bin/mpd_timing_test @ 247:6354a6af4ee2
new program mpd_timing_test
author | drewp@bigasterisk.com |
---|---|
date | Wed, 15 Jun 2005 03:19:15 +0000 |
parents | |
children | d5c81bb7d822 |
rev | line source |
---|---|
247 | 1 #!/usr/bin/python |
2 | |
3 """ | |
4 records times coming out of ascoltami | |
5 | |
6 for example: | |
7 | |
8 % mpd_timing_test > timing | |
9 # play some music in ascoltami, then ctrl-c | |
10 % gnuplot | |
11 > plot "timing" with lines | |
12 | |
13 """ | |
14 | |
15 import xmlrpclib, time | |
16 | |
17 s = xmlrpclib.ServerProxy("http://localhost:8040") | |
18 start = time.time() | |
19 while 1: | |
20 print time.time()-start,s.gettime() | |
21 time.sleep(.01) |