[Solved] What is the difference between two code snippets


The second example doesn’t have any delay in the execution. The first example only increments the opacity value once then waits for the next timer job. The second example keeps incrementing until its value is one in the first timer job hence no delay. You could add a wait into your do while or just stick with the first example?

solved What is the difference between two code snippets