Tangguhkan eksekusi ekspresi R untuk interval waktu tertentu.
Sys.sleep(time)
| Parameter | Deskripsi |
|---|---|
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)
# }