HElP, Counter to 9 without delay- not working

hello everybody, thank you in advance for your reply and help,
I make counter from 0 to 9 without delay but i can not make it , can me some one remodel code to see how it would work out with the function of Millis.

const int latchPin =  2;
const int dataPin = 3;
const int clockPin = 4;


int ledState1 = LOW;
int ledState2 = LOW;
int ledState3 = LOW;

unsigned long previousMillis = 0;


const long interval = 1000;


void setup() {


  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
}


void loop() {


  unsigned long currentMillis = millis();

  if (currentMillis - previousMillis >= interval) {

    previousMillis = currentMillis;


    if (ledState1 == LOW) {
      ledState1 = HIGH;
    } else {
      ledState1 = LOW;
    }



    digitalWrite(latchPin, ledState1);


    if (ledState2 == LOW) {
      ledState2 = HIGH;
    } else {
      ledState2 = LOW;
    }

    digitalWrite(dataPin, ledState2);


    if (ledState3 == LOW) {
      ledState3 = HIGH;
    } else {
      ledState3 = LOW;
    }

    digitalWrite(clockPin, ledState3);


    //0
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 64);
    digitalWrite(latchPin, HIGH);
    //1
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 121);
    digitalWrite(latchPin, HIGH);

    //2
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 36);
    digitalWrite(latchPin, HIGH);

    //3
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 48);
    digitalWrite(latchPin, HIGH);

    //4
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 25);
    digitalWrite(latchPin, HIGH);

    //5
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 18);
    digitalWrite(latchPin, HIGH);

    //6
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 2);
    digitalWrite(latchPin, HIGH);

    //7
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 120);
    digitalWrite(latchPin, HIGH);

    //8
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 0);
    digitalWrite(latchPin, HIGH);

    //9
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, 24);
    digitalWrite(latchPin, HIGH);


  }
}

Why do you start a new post? Ask moderator to join please

The first part is correct and you do manage the states well but then you just launch your 10 shift outs in one go... is that your intent?

Btw - Better make this unsigned long as well

const long interval = 1000;

I'm trying to do that it can operate more function at the same time,

I'm trying to do that it can operate more function at the same time,

That is NEVER going to happen. You can call several functions in a row, and have most of them do nothing. The total time it takes to call 10 functions, that on this particular call, do nothing, will be very, very, very short.

If one of the functions actually does something, what it does will take almost no time, so, even of all 10 functions do something, the total time taken to do all 10 things will be very, very, very short.

YOU will not be able to see, for example, 10 LEDs come on at different times, if the 10 LEDs are turned on in 10 sequential function calls, AS LONG AS NO FUNCTION BLOCKS - that is if each comes on a few nanoseconds after the previous one.

Damir, it looks like you're trying to make a clock that counts seconds.
The clock will need to "remember" the number of seconds somehow. Try using a variable to keep track of this number.