Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Using Timers??

sliperdmsliperdm Member Posts: 1
im quite new to this programming thing..one thing that i would like to ask is how to set up a program to run a timer, im currently want to run a windows time in my program. and also, how to run a specific timer where you can set the interval or something like that??
someone please help me..

Comments

  • dbrandtdbrandt Member Posts: 43
    system("sleep 1") or shell("sleep 1") will cause the program to stall for one second, so for a countdown program you could do this for example
    [code]
    for i = 10 to 0 step -1
    print i
    shell("sleep 1")
    next i
    [/code]
Sign In or Register to comment.