From: | David McMinn |
Date: | 3 Apr 2001 at 10:50:46 |
Subject: | Re: OS GetAShape? |
Hi John
> That's ok, I'm only after a way to wait for 25 50ths of a second and stuff
> like that.
Should have mentioned this before, but Delay_ from dos.library waits in chunks
of 50ths of a second (on all machines). e.g. Delay_ x waits for x/50ths of a
second.
> Hmm, ok, but how would I get the 64 bit value of the eclock? I guess
> maybe only the lower 32 bits are going to change in a second or two
> anyway?
Maybe only the lower 32 bits would change, but you'd need to subtract the two
things different eclock values. Probably easier using the Delay_ :)
Actually, I just went to try the eclock method and found that the ReadEClock_
doesn't tokenise here. And ISTR devices being a bit broken in Blitz. Another
advantage of Delay is that it actually puts the program to sleep in a proper
multitasking way, whereas if you used the eclock, you'd have to do a busy-wait
loop to wait for x/50ths of a second.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie