1. Re: 1/100

Aku,

You might also look into the setTimer procedure of Win32Lib. Sounds to me=
 like that will give you a bit more accuracy,
down to 1/1000 second, or higher. Suggewt you load Win32Lib.ew into an ed=
itor and search for procedure setTimer. The
documentation at that point is quite clear.

Jim
=A0
=A0

jiri babor wrote:

> Aku,
>
> you do not need interrupts. A simple peek does the trick. The timer
> below indicates ticks (18.2 per second) since midnight. jiri
>
> --=A0 file=A0 : timer.ex
> --=A0 author: jiri babor
> --=A0 date=A0 : 99-04-22
> --=A0 email : jbabor at paradise.net.nz
>
> while get_key() =3D -1 do
> =A0=A0=A0 position(1,1)
> =A0=A0=A0 printf(1, "%7d", peek4u(1132))
> end while
>
> ----- Original Message -----
> From: "Aku" <aku at INBOX.AS>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Tuesday, December 26, 2000 7:19 PM
> Subject: Re: 1/100 second
>
> > can you give me an example? I dont understand well.
> >
> ______________________________________________________________________
> > J> not sure what does that in Euphoria, but you could use the
> dos_interrupt
> > J> thing to get the timer ticks=A0 int 1A AH=3D00 returns a 32 bit ti=
ck
> count
> > J> (since midnight) in the cx:dx registers. and if your are really
> fast you
> > J> can peek at 0040:006c for the lowbyte Same count either way.
> > J> 55ms or 18.2 times a second, which won't give you an exact 1/100
> ...
> >

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu