| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils.R |
| 3 |
\name{msleep} |
| 4 |
\alias{msleep} |
| 5 |
\title{Sleep Utility} |
| 6 |
\usage{ |
| 7 |
msleep(time) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{time}{integer number of milliseconds to block the caller.} |
| 11 |
} |
| 12 |
\value{ |
| 13 |
Invisible NULL. |
| 14 |
} |
| 15 |
\description{ |
| 16 |
Sleep function. May block for longer than requested, with the actual wait |
| 17 |
time determined by the capabilities of the underlying system. |
| 18 |
} |
| 19 |
\details{ |
| 20 |
Non-integer values for \code{time} are coerced to integer. Negative, logical and |
| 21 |
other non-numeric values are ignored, causing the function to return |
| 22 |
immediately. |
| 23 |
|
| 24 |
Note that unlike \code{Sys.sleep()}, this function is not user-interruptible by |
| 25 |
sending SIGINT e.g. with ctrl + c. |
| 26 |
} |
| 27 |
\examples{ |
| 28 |
time <- mclock(); msleep(100); mclock() - time |
| 29 |
|
| 30 |
} |