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

About this list Date view Thread view Subject view Author view

Armin S. A. Roehrl (Armin.Roehrl@epfl.ch)
Thu, 30 Sep 1999 12:56:01 +0200



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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:33:58 EST