Mercurial > code > home > repos > light9
comparison bin/mpd_timing_test @ 1859:f066d6e874db
2to3 with these fixers: all idioms set_literal
Ignore-this: cbd28518218c2f0ddce8c4f92d3b8b33
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 May 2019 00:08:22 +0000 |
parents | 7772cc48e016 |
children |
comparison
equal
deleted
inserted
replaced
1858:7772cc48e016 | 1859:f066d6e874db |
---|---|
9 % gnuplot | 9 % gnuplot |
10 > plot "timing" with lines | 10 > plot "timing" with lines |
11 | 11 |
12 """ | 12 """ |
13 | 13 |
14 import xmlrpclib, time | 14 import xmlrpc.client, time |
15 | 15 |
16 s = xmlrpclib.ServerProxy("http://localhost:8040") | 16 s = xmlrpc.client.ServerProxy("http://localhost:8040") |
17 start = time.time() | 17 start = time.time() |
18 while 1: | 18 while True: |
19 print time.time() - start, s.gettime() | 19 print(time.time() - start, s.gettime()) |
20 time.sleep(.01) | 20 time.sleep(.01) |