How to advance Arduino with DC motors for a period of time ?

Hi, I'm beginner and I have a problem. I can advance arduino with two DC motors, i'ts not the problem, but i really don't no how can i advance the arduino for a period of time ? :confused:

If someone can help me pleasse, thanks !

My program to advance two motors DC with L293D : int motor1_enablePin = 11; //pwm int motor1_in1Pin = 13; int motor1_in2Pin = 12;

int motor2_enablePin = 10; //pwm int motor2_in1Pin = 8; int motor2_in2Pin = 7;

void setup() { //on initialise les pins du moteur 1 pinMode(motor1_in1Pin, OUTPUT); pinMode(motor1_in2Pin, OUTPUT); pinMode(motor1_enablePin, OUTPUT);

//on initialise les pins du moteur 2 pinMode(motor2_in1Pin, OUTPUT); pinMode(motor2_in2Pin, OUTPUT); pinMode(motor2_enablePin, OUTPUT);

}

void loop() {

SetMotor2(255, false); SetMotor1(175, true);

}

//Fonction qui set le moteur1 void SetMotor1(int speed, boolean reverse) { analogWrite(motor1_enablePin, speed); digitalWrite(motor1_in1Pin, ! reverse); digitalWrite(motor1_in2Pin, reverse); }

//Fonction qui set le moteur2 void SetMotor2(int speed, boolean reverse) { analogWrite(motor2_enablePin, speed); digitalWrite(motor2_in1Pin, ! reverse); digitalWrite(motor2_in2Pin, reverse); }

I can advance arduino with two DC motors, i'ts not the problem, but i really don't no how can i advance the arduino for a period of time ?

void loop()
{

  SetMotor2(255, false);
  SetMotor1(175, true);

  delay(1000);
  while(1)
  {
     // stop doing anything
  }
}