Add timestamps (optional) to chat messages