
-----------------------------------
D4rkM4g3
Tue May 02, 2006 5:09 pm

Delay without Delay
-----------------------------------
Okay, I have to figure out a way to make turing delay without using the actual delay procedure... I have no idea why, it's just a stupid class assignment. Any help would be greatly appreciated.

-----------------------------------
Cervantes
Tue May 02, 2006 5:19 pm


-----------------------------------
How about something like this?


loop
    exit when Time.Elapsed > 1000
end loop


-----------------------------------
D4rkM4g3
Tue May 02, 2006 5:23 pm


-----------------------------------
Yeah, I thought of that, but we're only supposed to use things we've learned in class (bleh). So far we've only done up to conditional loops (there are some slow people in my class)

-----------------------------------
HellblazerX
Tue May 02, 2006 5:23 pm


-----------------------------------
Well, one way to do this is to have a loop that keeps running until the certain time is reached.  Basically, have a flag keep track of when the delay started by using Time.Elapsed.  Basically, you would constantly call Time.Elapsed, and when the time is up, then you exit the loop.  This is a pretty stupid assignment.

-----------------------------------
D4rkM4g3
Tue May 02, 2006 5:32 pm


-----------------------------------
Yeah, stupid, I know. Especially because the only thing we're allowed to use is stuff we've covered in class, not stuff we've learned on our own, which is basically just the basic put, get, variable etc, procedures, and loops. We haven't even done ifs yet.

-----------------------------------
TokenHerbz
Tue May 02, 2006 5:42 pm


-----------------------------------
You should know for loops, so thats how it goes..


put "delay started"
for i : 1 .. 1000
    for j : 1 .. 1000
    end for
end for
put "DELAY"



Oh no TokenHerbz, please don't get mad...:lol:.  Edit button was removed a long time ago for good reasons...move along, move along.


-----------------------------------
TokenHerbz
Tue May 02, 2006 5:43 pm


-----------------------------------
OMG:  Mods:  Can you fix that error, i mist "]", and when you do, delete this post i made here...

/me gets mad cause theres no edit button

-----------------------------------
D4rkM4g3
Tue May 02, 2006 5:46 pm


-----------------------------------
That's exactly what I needed! Thanks.
