print time and message