Changeset - d5c81bb7d822
[Not reviewed]
default
0 1 0
Drew Perttula - 19 years ago 2006-06-16 16:59:51
drewp@bigasterisk.com
mpd_timing_test edit
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/mpd_timing_test
Show inline comments
 
@@ -5,17 +5,17 @@ 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")
 
s = xmlrpclib.ServerProxy("http://star:8040")
 
start = time.time()
 
while 1:
 
    print time.time()-start,s.gettime()
 
    time.sleep(.01)
0 comments (0 inline, 0 general)