added option of printing time to serial port