Algorithm for adjusting the speed of a progress bar animation
You will need to persist the percent completed across frames and update it based on the time elapsed since last frame and the total time. 

percentCompleted = 0;
totalTime = 10; //in seconds

void onUpdate(float deltaTime){
    percentCompleted += deltaTime/totalTime;
}

void hurryUp(){
    totalTime = 1;
}