www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/08:06:53

From: ake DOT oster AT mailbox DOT swipnet DOT se (Åke Öster)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: exact timming
Date: 26 Feb 1997 11:34:16 GMT
Organization: -
Lines: 22
Message-ID: <5f173o$6lt@mn5.swip.net>
References: <Pine DOT LNX DOT 3 DOT 91 DOT 970217141135 DOT 32046B-100000 AT tabor DOT ta DOT jcu DOT cz>
NNTP-Posting-Host: dialup90-1-9.swipnet.se
Mime-Version: 1.0
NNTP-Posting-User: s-36293
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>> >Jan Hubicka <hubicka AT atrey DOT karlin DOT mff DOT cuni DOT cz> wrote:
>> 
>> >>I have small problem:
>> >>XaoS needs to quite exactly time one part of program. (Uses it to 
calculate
>> >>framerate: time*5 so for framerate 30 I need to know time in precisity 
1/150sec.
>> >>) higher precisity is better.
>> >>Gettimeofday(I using in unix) is not exact enought (1/18.2sec...4 or inf 
frames
>> >>per second) 
>> 
>> >>What is the best way to time this? Only I know about is to attach timer, 
set
>> >>it to higher rate and make some my own counter. Can some send me code for 
this?
>> >>Since I am lazy to study all irq attaching stuff under dpmi. Last time I 
did
>> >>this is about 5 years ago in assembly.

Why don't you use uclock()?

- Raw text -


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