www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/29/02:28:51

Message-Id: <199711290724.SAA05025@rabble.uow.edu.au>
Subject: Timing issues
To: djgpp AT delorie DOT com (DJGPP)
Date: Sat, 29 Nov 1997 18:24:49 +1100 (EST)
From: Brett Porter <bporter AT rabble DOT uow DOT edu DOT au>
MIME-Version: 1.0

Hi

Quick question about using timers in my apps. Basically I want to start a
clock and when it passes a certain value do something then reset it.

The best measurement of time would be in milliseconds (same as delay).

What are the best functions to do this? uclock() - or is it puclock()? - or
are there others. I need to do other things until the clock reaches it's
value.

Please don't suggest Allegro's timers or a timer interrupt as I am looking
for a better alternative if possible.

On that issue, if I do later install a timer interrupt for music or the like
at interrupt 0x08 or perhaps 0x1C, will this affect the the uclock (or
whateveer) functions? What if I chain back to the original interrupt?

I'm looking for a new method because the clock() functions I used in the
previous version (under Borland) was pretty bad in terms of accuracy. IT is
for animation, so the more consistent the timer the better, so that the
graphics look smooth.

Please write back ASAP, because I go on holidays soon. Thanks in advance.

Brett

-- 
"Those here who believe in telekenesis... raise MY hand!"
--
Brett Porter		--		blp01 AT uow DOT edu DOT au

	http://www.geocities.com/SiliconValley/Park/7483
	  Programming Stuff - DJGPP - The PAGOS Project

	http://www.geocities.com/CollegePark/Union/3596
		    Humour, University Life

- Raw text -


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