rename in controller

renamed timeToUpdate to elapsedTime