Need help with non delay timing

There's a lot of code, but currentMillis is just holding the value for millis

 // get the current time
  int currentMillis = millis();