delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/20:31:38

From: Marnix DOT Koerselman AT nl DOT origin-it DOT com (Marnix)
Newsgroups: comp.os.msdos.djgpp
Subject: high-res timer with Allegro
Date: Tue, 23 Dec 1997 22:00:49 GMT
Organization: Origin
Lines: 21
Distribution: world,inet
Message-ID: <34a03467.14125575@news.origin.nl>
NNTP-Posting-Host: hcz4modem19.ehvvon.nl.origin-it.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi !

I need a high-resolution time reader that can be used with Allegro.

I know it is possible to install an interrupt handler that could be
called every milisecond or so, but I need it about 10 times better (at
least).

I also know that it is possible to read the current clock tick from
the countdown register (though I don't really know how to put that in
the crazy-ass assembler that djgpp uses), but that doesn't help a lot
since Allegro reprograms the timer chip constantly.

In short: does anyone know of a way or (assembler) code to do a
DelayUntil(Time) (rather than Delay(Duration)) with a precision of 0.1
msec or better ?

Cheers,

Marnix

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019