Changeset - 6354a6af4ee2
[Not reviewed]
default
0 0 1
drewp@bigasterisk.com - 20 years ago 2005-06-15 03:19:15
drewp@bigasterisk.com
new program mpd_timing_test
1 file changed with 21 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/mpd_timing_test
Show inline comments
 
new file 100644
 
#!/usr/bin/python
 

	
 
"""
 
records times coming out of ascoltami
 

	
 
for example:
 

	
 
 % mpd_timing_test > timing
 
 # play some music in ascoltami, then ctrl-c
 
 % gnuplot
 
 > plot "timing" with lines
 

	
 
"""
 

	
 
import xmlrpclib, time
 

	
 
s = xmlrpclib.ServerProxy("http://localhost:8040")
 
start = time.time()
 
while 1:
 
    print time.time()-start,s.gettime()
 
    time.sleep(.01)
0 comments (0 inline, 0 general)