2 ms·
I've built such systems in C++ before, and they really are extremely useful. You get much more efficient logging (in terms of CPU time, code size, and bandwidth
by rcxdude 5y ago
I've built such systems in C++ before, and they really are extremely useful. You get much more efficient logging (in terms of CPU time, code size, and bandwidth on the wire), and it's automatically structured. printf style logging seems extremely primitive in comparison. It also pairs very well with asynchronous logging (just sticking the logged data into a ringbuffer to be transferred in bulk later), since then you can stick logs statements practically anywhere, often including interrupts and whatever mechanism you are using the transmit the logs.