Arduino delay in transitioning from high to low

I have a simple question. I set a digitalwrite on pin 8 to high with a 10 second delay. Then set to a low after the delay.

Measuring the voltage at pin 8 to ground, I get 4.4 VDC. The issue is the time it takes to go from high to low is about 19 seconds. The time is almost twice as what I had expected.

Any suggestions.

(deleted)

Here is the code:

//defining connections to L298N
int input1 = 8;
int input2 = 9;
int input3 = 10;
int input4 = 11;
int dly = 10000;
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

void setup()
{
 pinMode(input1,OUTPUT);
 pinMode(input2,OUTPUT);
 pinMode(input3,OUTPUT);
 pinMode(input4,OUTPUT);
 pinMode(led, OUTPUT);
}

void loop()
{
digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
//1st step
digitalWrite(input1,HIGH);
digitalWrite(input2,LOW);
digitalWrite(input3,LOW);
digitalWrite(input4,HIGH);
delay(dly);  //small delay between each step of 10ms

//2nd step
digitalWrite(input1,LOW);
digitalWrite(input2,HIGH);
digitalWrite(input3,LOW);
digitalWrite(input4,HIGH);
delay(dly);

//3rd step
digitalWrite(input1,LOW);
digitalWrite(input2,HIGH);
digitalWrite(input3,HIGH);
digitalWrite(input4,LOW);
delay(dly);

//4th step

digitalWrite(input1,HIGH);
digitalWrite(input2,LOW);
digitalWrite(input3,HIGH);
digitalWrite(input4,LOW);
delay(dly);
//
digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
delay(dly);               // wait for a second
}

Board: Ardunio Uno
IDE code level 1.0.5-R2

Needed to down level due to compile errors when running on Windows XP

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

(deleted)

(deleted)

Seems like my problem is between the 1st and 4th step. When measuring ping 8. It get turned on and off after step 1, but gets turned on in step 4.

I am measuring the time between step 4 and 1.

I will test this. Thanks for pointing me in the right direction. I was going in circles.