added time logging to heartbeat