Convert currentTime to function

This allow us to log the time each message was sent, as opposed to the
time the object was created (unlikely to be a big difference, but good
to be as accurate as possible).