# HG changeset patch # User drewp@bigasterisk.com # Date 1118805555 0 # Node ID 6354a6af4ee261dcb24a75adab497f8980d35478 # Parent 89cd37c4314bb22446fa4baed4b431f0c654803e new program mpd_timing_test diff -r 89cd37c4314b -r 6354a6af4ee2 bin/mpd_timing_test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/mpd_timing_test Wed Jun 15 03:19:15 2005 +0000 @@ -0,0 +1,21 @@ +#!/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)