GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #4936

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Frank Heckenbach
Subject: Bug in Delay
Date: 23 Apr 2001, 17:27:16

Eli Zaretskii wrote:

> > Being no DJGPP expert, I'm wondering what we should call now in the
> > GPC units.
> 
> I cannot advise here, since my Pascal knowledge is virtually
> non-existent.  Do Pascal users really need sub-54ms resolution when
> they call these functions?

It hasn't too much to do with Pascal. The Delay procedure (= napms()
in curses) just has a declared millisecond resolution, so users will
at least expect to get a delay > 0 when passing a value > 0 (though,
coming from another Dos compiler, they can't really expect too
precise delays)...

> > Does this mean we shouldn't call usleep() and just accept that short
> > delays don't work, or should we just call delay() because MS-Windows
> > users are used to random system crashes and hangs, anyway? ;-)
> 
> You could use delay() on plain DOS and usleep() on Windows and OS/2.

So, how to distinguish them? -- I suppose that's in the FAQ or
something, so perhaps some other DJGPP user can tell me how to do it
or send me some code.

Frank

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Eli Zaretskii Bug in Delay 23 Apr 2001, 20:48:11
Maurice Lombardi Bug in Delay 23 Apr 2001, 20:43:08
Jason Burgon Bug in Delay 23 Apr 2001, 20:17:15
Frank Heckenbach Bug in Delay 25 Apr 2001, 01:12:04
Maurice Lombardi Bug in Delay 25 Apr 2001, 21:09:25
Frank Heckenbach Bug in Delay 29 Apr 2001, 06:46:16
levi@localhost.nc3a.nato.int Bug in Delay 23 Apr 2001, 20:48:11

In reply to

Author Subject Date
Eli Zaretskii Bug in Delay 29 Mar 2001, 12:12:30
Frank Heckenbach Bug in Delay 31 Mar 2001, 03:29:22
Eli Zaretskii Bug in Delay 31 Mar 2001, 11:55:42

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).