nanogui@linuxhacker.org
nanogui@linuxhacker.org
On Fri, 14 Jul 2000 rogach@sut.ru wrote:
> In microwindows 0.88 pre 10 port for DJGPP, what is a function nanosleep
> ?
nanosleep() is a function which takes a pointer to a timespec structure
which specifies the number of seconds and nanoseconds to wait- you use it
when you want a higher resolution than you get with sleep(). If you have
it, it will be defined in time.h. If you don't have it, one possibility is
to use select() on an empty fd set but with the required delay in the
timeout argument.
--------------- Linux- the choice of a GNU generation. --------------
: Alex Holden (M1CJD)- Caver, Programmer, Land Rover nut, Radio Ham :
-------------------- http://www.linuxhacker.org/ --------------------
nanogui@linuxhacker.org