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