Quote
I see in your code that you are disabling interrupts before calling millis, You don't need to do that, millis does that for you.
Ok, thanks for the info.Quote
BTW, I would expect you would get different numbers if you had used bytes instead of ints for your hour, minute and seconds variables
true, perhaps I should try that too just for fun.Quote
Also, I agree with the sentiments expressed by AB, kg and RC that its better to use what makes the most readable and logical source code and not worry about optimization until you really need to.
I agree too, however in this case I think both versions are very readable, the modulo version is certainly shorter, but the if version is easy to follow, and for a person new in programming I think the modulo version can be a little confusing at first.