NAME

nap - Sleep for a given number of milli-seconds

SYNOPSIS

#include "l/l_sys_tsig.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int nap(long time_in_milliseconds);

DESCRIPTION

This routine implements a milli-second sleep.

RETURNS

NO_ERROR for a successful sleep, and ERROR if it can't be done.

NOTE

On many systems a micro-second sleep (usleep) is available, but certainly not all! Using this routine provides a degree of portability. (Provided that you don't want to sleep for less than one milli-second). As always with sleeps, the time slept can be more than the requested amount.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

time_out_fn , time_out_long_jump_fn