Wednesday, August 25, 2010

Making a Simple Timer



"clock" a variable.

properties of a timer. = simple.
enabled = true.
timer interval at 100 = it'll go like 0.01 of a second? so very fast.
if timer interval is at 1000 it'll go 1 second. every second a timer will occur.

integer = timer will be whole numbers.

button 1 = start. Timer1.enabled=true this means that it will turn the timer on.
button 2 = stop. Timer1.enabled=false this means that it will turn the timer off.

clock = clock + 1 add one to clock. add 1 to the value of clock. everytime it goes off.

interval at 100
decimal to come out as decimals.
clock + 0.01 add 0.01 to value of clock.


yeah? yeah.

No comments:

Post a Comment

Followers