From: | John Mason |
Date: | 3 Apr 2001 at 00:33:14 |
Subject: | Re: OS GetAShape? |
Hi David,
> > system startup? I want to be able to timing and 50ths of a second would
> > be fine, but the ticks function in Blitz always returns 0 for some reason.
> > ISTR there is a field in a structure somewhere with that value, but I
> > can't remember where it is.
> What's this got to do with GetAShape then? ;)
Hehe, I had started to ask about that but figured something out as I was
writing that message, so I recycled it to ask about timing.. but I
obviously forgot to change the subject :)
> You could try the E clock, but I'm not sure if that is the time since system
> startup or not. Could be though.
That's ok, I'm only after a way to wait for 25 50ths of a second and stuff
like that.
> NEWTYPE.sixtyfour
> high.l
> low.l
> End NEWTYPE
> DEFTYPE.sixtyfour e_val
> freqeuncy_of_e_clock.l = ReadEClock_(&e_val)
> ; Number of E clock (based on master frequency of computer, different for
> ; PAL (709379Hz) and NTSC (715909Hz).
> You can therefore get the time in fractions of a second between two ReadEClock_
> calls by subtracting the first from the second and then dividing by the
> frequency.
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?
John Mason -- ICQ 17931257
http://chebucto.ns.ca/~ah210/Profile.html
Home of NewStuff and Reminder!
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie