How to know when serial has finished sending

mattallen37:
@eried thanks but I don't need help with receiving data.

@el_supremo Thanks. What library do I need to #include to get access to that functionality?

The code I posted is just a simple way to wait for the "full" data (timeout 10 ms), not just receive data.