update loop time