Line of Code Processing TIme
how long take process line of code? have counter want take 1 minute between each time goes through it, there bunch of code above this:
will code genuinely take off 1 minute between each line? had delay time inputted, making counter equal input , trying instead. inputted time in minutes.
code: [select]
if (counter >= 15 || counter <= 14)
{
delay(60000);
counter--;
}
if (counter > 14 && < 15)
{
serial.print("next toggle in less 15 minutes");
delay(60000);
counter--;
}
if (counter <= 0)
{
(code causes toggling)
}
will code genuinely take off 1 minute between each line? had delay time inputted, making counter equal input , trying instead. inputted time in minutes.
quote
how long take process line of code?impossible say.
the line of code may call function takes hour execute, or may simple assignment takes hundred or nanoseconds.
Arduino Forum > Using Arduino > Project Guidance > Line of Code Processing TIme
arduino
Comments
Post a Comment