[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuplot-info-beta
Subject: Re: suggestion
From: Alexander Mai <st002279 () HRzpUB ! tu-darmstadt ! DE>
Date: 2000-03-16 9:55:03
[Download RAW message or body]
On Thu, Mar 16, 2000 at 09:04:17AM +0100, Petr Mikulik wrote:
[...]
> What about adding a function msleep(miliseconds) or usleep(microseconds)?
> Linux has usleep(), OS/2 has msleep which is called _sleep2() in EMX. If
> such sleep is not avail on a given platform, then use
> sleep(int(0.5+time)).
>
> Something with command.c: GP_SLEEP(sleep_time); #defined in stdfn.h ...
> Easy to do?
Please read the FAQ I specified.
Based on my personal experience mostly the approach using select() is used.
Has the same offical references as usleep (UNIX95/98 and BSD4.3) but seems even
more widely implemented.
What's the problem if the docs would state:
a sub-second resolution is not available on all systems
? Since it's not an impoertant it doesn't matter in my opinion.
--
Alexander Mai
st002279@hrzpub.tu-darmstadt.de
[[[[ unsubscribe from info-gnuplot-beta via majordomo@dartmouth.edu ]]]]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic