Mail Archives: djgpp/1997/02/11/13:59:44
Date: | Tue, 11 Feb 1997 18:56:17 +0200 (EET)
|
From: | Indrek Mandre <indrek AT warp DOT edu DOT ee>
|
To: | djgpp AT delorie DOT com
|
Subject: | Re: exact timming
|
In-Reply-To: | <Pine.LNX.3.91.970211142721.23641A-100000@tabor.ta.jcu.cz>
|
Message-ID: | <Pine.LNX.3.95.970211182355.229A-100000@warp.edu.ee>
|
MIME-Version: | 1.0
|
On Tue, 11 Feb 1997, Jan Hubicka wrote:
> I sent letter before..but there was some problemw with net..
> I need to exactly get time of one part of calculation in XaoS
> (exact to 1/150sec) In unix gettimeofday works ok..but at dos it is exact
> just to 1/18.2sec
> How can I do this..
> In case only way is to increase timer speed and do interrupt handler with
> counter please send me some code if possible..
I have the same problem. Also when I use setitimer to call alarm I can't
set it to work more than 10 times in second. In linux 100 times and I
think in all other UNIXes at least same. Gettimeofday working sucks.
And my signal handler gets called only 10 times in second. Is there
anything to do to make it work better? Is it a bug in DJGPP? I think it
should work better and be compatible with UNIXes or at least Linux. Does
usleep also work so, does it only use 1/18 second delays? It works
sometimes strange.
Any comments?
/* Indrek Mandre
indrek AT warp DOT edu DOT ee
The computer always does exactly that what you make it to do... */
PS: I didn't find uclock in Linux libraries...
- Raw text -