Reduce CPU load
Reduce CPU load

Avoid busy waiting in main loop by using Event.wait.
This reduces CPU load from 100% to <5% when reading from a file.
When reading from a serial device, it reduces CPU load from ~250% to ~170-210%
(depending on the input).

Note: With a longer timeout, CPU load would decrease even more but we would lose on
responsiveness.

alexandreblin/python-can-monitor