[R] non-cpu intensive sleep in R?;

Armin S. A. Roehrl Armin.Roehrl at epfl.ch
Thu Sep 30 12:56:01 CEST 1999


Hi,

Is there a function similar to C's usleep in R? 
	 usleep(10000);
from the man pages:
The usleep() function will cause the calling thread to be suspended from
execution until either the number of real-time microseconds specified by
the argument  useconds has elapsed or a signal is delivered to the
calling thread and its action is to invoke a signal-catching function or
to terminate the process. The
suspension time may be longer than requested due to the scheduling of
other activity by the system. 

I do not want to dyn.load usleep for portability reasons. Calling sth.
like a system("sleep 1")
is not an option.

Thanks,
	Armin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list