INNER CODE UNIT · Python
refresh_interval
Chanchaldhiman/CANviz · backend/canviz/cli.py:521
refresh_interval = 1.0 / refresh_rate
with Live(
_build_table(),
console=console,
refresh_per_second=refresh_rate,
screen=False,
) as live:
while True:
time.sleep(refresh_interval)
live.update(_build_table())
else:
while True:
time.sleep(1)
except KeyboardInterrupt:
pass
finally:
_running = False