Mercurial > code > home > repos > light9
diff bin/attic/mpd_timing_test @ 2376:4556eebe5d73
topdir reorgs; let pdm have its src/ dir; separate vite area from light9/
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 May 2024 19:02:10 -0700 |
parents | bin/mpd_timing_test@f066d6e874db |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/attic/mpd_timing_test Sun May 12 19:02:10 2024 -0700 @@ -0,0 +1,20 @@ +#!/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 xmlrpc.client, time + +s = xmlrpc.client.ServerProxy("http://localhost:8040") +start = time.time() +while True: + print(time.time() - start, s.gettime()) + time.sleep(.01)