periodically update time