log realtime performance

This commit is contained in:
Roman Zeyde
2014-07-12 11:51:50 +03:00
parent 0538c11abf
commit 1a0175c975

View File

@@ -129,8 +129,10 @@ def demodulate(symbols, filters, freqs):
for block in itertools.izip(*streams):
for bits in block:
bitstream.extend(bits)
log.info('Demodulated %d bits : %.3f kB @ %.3f seconds',
len(bitstream), len(bitstream) / 8e3, time.time() - start)
duration = 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:
pylab.figure()