Suspend execution of R expressions for a specified time interval.
Sys.sleep(time)
| Parameter | Description |
|---|---|
time |
The time interval to suspend execution for, in seconds. |
# NOT RUN {
testit <- function(x)
{
p1 <- proc.time()
Sys.sleep(x)
proc.time() - p1 # The cpu usage should be negligible
}
testit(3.7)
# }