doubt regarding Millis

Try reading the documentation for the serial.flush() method. AND make sure it's the version on the site.

Mark