Mercurial > code > home > repos > light9
annotate bin/mpd_timing_test @ 901:0dacbba70d06 last-2012
remove some broken profiler attempts
Ignore-this: 3d50124a16807ee922e85911d510ce58
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 10 Jun 2013 00:09:17 +0000 |
parents | a6f4a5b2647c |
children | 7772cc48e016 |
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 | |
433
a6f4a5b2647c
convert music to ogg, since mpd seeking in .wav is broken this year
drewp@bigasterisk.com
parents:
312
diff
changeset
|
17 s = xmlrpclib.ServerProxy("http://localhost:8040") |
247 | 18 start = time.time() |
19 while 1: | |
20 print time.time()-start,s.gettime() | |
21 time.sleep(.01) |