How can I set speed correctly?

Good Morning, just got a kit and was wondering how can I set the speed of my motor. I tried searching and found that the setSpeed is the one I need but unfortunately, I tried putting it on the default pre-built code and it doesn't seem to be having any influence. Also, I have no prior knowledge to any programming language.

Here's my default code:

/* 
 Stepper Motor Control - one revolution
 
 This program drives a unipolar stepper motor. 
 The motor is attached to digital pins 8 - 11 of the Arduino.
 
 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.  
  */
  
void setup() {                
  // initialize the digital pin as an output.
  pinMode(8, OUTPUT); 
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
}
void loop() {
  int i=0;
  
//revolve one revolution clockwise
  for(i=0;i<1024;i++){
  clockwiserotate();}  
  delay(10);              // wait for a second

 //revolve one revolution counterclockwise
 for(i=0;i<1024;i++){
  counterclockwiserotate();}  
  delay(10);              // wait for a second
}
void clockwiserotate() { //revolve clockwise
  step1();
  step2();
  step3();
  step4();
  step5();
  step6();
  step7();
  step8();
}
void counterclockwiserotate() { //revolve counterclockwise
  step1();
  step7();
  step6();
  step5();
  step4();
  step3();
  step2();
  step1();
}
void step1(){
  digitalWrite(8, HIGH);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step2(){
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step3(){
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step4(){
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  digitalWrite(10, HIGH);
  digitalWrite(11, LOW);
  delay(2);
}
void step5(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, HIGH);
  digitalWrite(11, LOW);
  delay(2);
}
void step6(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, HIGH);
  digitalWrite(11, HIGH);
  delay(2);
}
void step7(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, HIGH);
  delay(2);
}
void step8(){
  digitalWrite(8, HIGH);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, HIGH);
  delay(2);
}

And I tried applying the set speed and it's prerequisites:

/* 
 Stepper Motor Control - one revolution
 
 This program drives a unipolar stepper motor. 
 The motor is attached to digital pins 8 - 11 of the Arduino.
 
 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.  
  */
  #include <Stepper.h>
  const int stepsPerRevolution = 200;
  Stepper myStepper(stepsPerRevolution, 8,9,10,11);
  
void setup() {                
  // initialize the digital pin as an output.
  
  pinMode(8, OUTPUT); 
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  myStepper.setSpeed(10);
  Serial.begin(9600);
}
void loop() {
  int i=0;
  //revolve one revolution clockwise
 
 for(i=0;i<1024;i++){
  clockwiserotate();}
  myStepper.step(stepsPerRevolution);
  delay(10);              // wait for a second
 //revolve one revolution counterclockwise

 for(i=0;i<1024;i++){
  counterclockwiserotate();}
  myStepper.step(stepsPerRevolution);
  delay(10);              // wait for a second
}
void clockwiserotate() { //revolve clockwise
  step1();
  step2();
  step3();
  step4();
  step5();
  step6();
  step7();
  step8();
}
void counterclockwiserotate() { //revolve counterclockwise
  step1();
  step7();
  step6();
  step5();
  step4();
  step3();
  step2();
  step1();
}
void step1(){
  digitalWrite(8, HIGH);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step2(){
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step3(){
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  digitalWrite(10, LOW);
  digitalWrite(11, LOW);
  delay(2);
}
void step4(){
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  digitalWrite(10, HIGH);
  digitalWrite(11, LOW);
  delay(2);
}
void step5(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, HIGH);
  digitalWrite(11, LOW);
  delay(2);
}
void step6(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, HIGH);
  digitalWrite(11, HIGH);
  delay(2);
}
void step7(){
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, HIGH);
  delay(2);
}
void step8(){
  digitalWrite(8, HIGH);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(11, HIGH);
  delay(2);
}
 Stepper Motor Control - one revolution

Why oh,why do thing that just making something up will be understood?

Read the examples read the documents - bit never just write a meaning less string os chars and expect a computer or a human to understand it!

Make an effort!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Mark

The first sketch controls the stepper motor using digitalWrite(). This is a good way to understand how controlling a stepper motor works but it's annoying to have to reproduce that code every time you want to write a sketch that controls a stepper motor. For this reason the Stepper library was written. It moves all that code out of your sketch to a file that can be shared by all your projects that need it by including the library files and calling their functions. The problem you're having is even though you're trying to use the library you are still using the functions in your sketch, which of course won't be affected by myStepper.setSpeed(). You need to remove clockwiserotate() and counterclockwiserotate() from your sketch and switch to solely using the library functions. You can find more information at File > Examples > Stepper and:

thank you holmes4 for your uninspiring comment. you are the master of none.

thank you pert...a real thank you!