detect time in us, added logging, waiting 20 sec fot usb to initialize