Hello,
I was reading on a web site that by using the following code:
int x,y;
for(x = 0; x < 2000; x++)
{
for(y = 0; y < 2000000; y++)
{
}
}
as a delay, that the actual time delay will be different on different PICs.
Why is this?
Also, what's the reason for two variables, why not just use on variable?
Thanks a lot,
mpuvdd
I was reading on a web site that by using the following code:
int x,y;
for(x = 0; x < 2000; x++)
{
for(y = 0; y < 2000000; y++)
{
}
}
as a delay, that the actual time delay will be different on different PICs.
Why is this?
Also, what's the reason for two variables, why not just use on variable?
Thanks a lot,
mpuvdd