added gettimeofday call to writer so it can add the send time to outgoing messages.