Delay routine of in-built library is not working properly

Status
Not open for further replies.

thangaduraibeece

Junior Member level 2
Joined
Jul 4, 2008
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,419
Hi,
I have written a c program which use an in-built delay loop for having a delay of 150ms.When i check the timing, the delay routne doesn't produce 150 milliseconds delay always it wasonly 50, 60, 70 milliseconds sometimes.
I am surprise on seeing this.Because i expected a delay of more than 150 milliseconds since i am running this turbo c application in windows OS where a process based scheduling is running.Contradictoru to my expectation, the time delay is less than 150 milliseonds.

/************** My Code ************/

delay(150);

/************** End of my Code *****/

Could anyone help me on this?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…