Author | Comment |
mojoman0 Probe Posted: 13 Apr 2005 17:45 GMT Total Posts: 6 | can someone help me code a simple timer that will display on the screen counting down in seconds, or anything possible...cant figure it out...was messing with the For command but im not sure...any help appreciated..thanks |
korkow Ultralisk Posted: 13 Apr 2005 19:07 GMT Total Posts: 465 | Counting down from what? 10 seconds? 20 seconds? |
mojoman0 Probe Posted: 13 Apr 2005 21:38 GMT Total Posts: 6 | yeah about 15 to 20 secs or preferably a variable that could be changed..i have no idea how to do time... |
mojoman0 Probe Posted: 14 Apr 2005 21:12 GMT Total Posts: 6 | anyone?? |
PogoDaMonkey Dragoon Posted: 15 Apr 2005 07:31 GMT Total Posts: 72 | I'm working on C, but i think what you can try is take some kind of thing that counts in seconds in real life, and test a program that subtracts decimal points (somewhere between .0001 or something) and use the side on the left of the decimal as your seconds, right of it to your milliseconds. I tried something like this counting up on the 83, its just a matter of getting it to be close to perfect. I will see if i can PM you an 89 sample of what i mean (if connect will work) |
Ray Kremer Ultralisk Posted: 15 Apr 2005 09:53 GMT Total Posts: 310 | Using the built-in clock functions or not using them? |
mojoman0 Probe Posted: 15 Apr 2005 15:07 GMT Total Posts: 6 | i dont know if there is a built in clock function..can anyone explain? would be fine if it counted up too...just dont know how to mess around with time in basic aim: mojoman0013 if anyone can help thanks |
Ray Kremer Ultralisk Posted: 18 Apr 2005 11:42 GMT Total Posts: 310 | I'f you've got HW2 or higher and the appropriate AMS version, there is a built in clock that you can grab a seconds timer from. Otherwise just do something like this:
For a,1,50 Disp a For b,1,200 EndFor EndFor
Adjust that 200 to whatever number pleases you. |
Lunchbox Carrier
Posted: 18 Apr 2005 21:27 GMT Total Posts: 2007 | I made one for the 83+ (here) and forgot I uploaded it. Check it out for help, 89 basic is very similar to 83+ basic. |
PogoDaMonkey Dragoon Posted: 19 Apr 2005 04:08 GMT Total Posts: 72 | Great, i got connect working, i'll PM you my sample (that i just made today) later in the day. |
mojoman0 Probe Posted: 19 Apr 2005 18:25 GMT Total Posts: 6 | thanks guys, yeah i ihave hw3 cause its a titanium..how would i grab a timer from the clock?
edit: k, so i see how to use the startTmr() function. I could either use that or i the For example above...now i need to know how to use this while a loop is running so that the proggy ends when a time limit is reached..anyone?
[Edited by mojoman0 on 20-Apr-05 06:34] |
PogoDaMonkey Dragoon Posted: 20 Apr 2005 04:03 GMT Total Posts: 72 | Uh, forgot to make it, today i will. |