mirror of
https://github.com/romanz/amodem.git
synced 2026-05-09 13:07:39 +08:00
log realtime performance
This commit is contained in:
6
recv.py
6
recv.py
@@ -129,8 +129,10 @@ def demodulate(symbols, filters, freqs):
|
|||||||
for block in itertools.izip(*streams):
|
for block in itertools.izip(*streams):
|
||||||
for bits in block:
|
for bits in block:
|
||||||
bitstream.extend(bits)
|
bitstream.extend(bits)
|
||||||
log.info('Demodulated %d bits : %.3f kB @ %.3f seconds',
|
duration = time.time() - start
|
||||||
len(bitstream), len(bitstream) / 8e3, time.time() - start)
|
audio_time = len(bitstream) / sigproc.modem_bps
|
||||||
|
log.info('Demodulated %.3f kB @ %.3f seconds = %.1f%% realtime',
|
||||||
|
len(bitstream) / 8e3, duration, 100 * duration / audio_time)
|
||||||
|
|
||||||
if pylab:
|
if pylab:
|
||||||
pylab.figure()
|
pylab.figure()
|
||||||
|
|||||||
Reference in New Issue
Block a user