R/sleep.R

Defines functions sleep

Documented in sleep

sleep<-function(x){
# Let's the system sleep for x seconds (to slow down plotting of points, for example)
  start.time<-Sys.time()
  while((Sys.time()-start.time)<x){}
}
tpepler/theolib documentation built on Aug. 10, 2021, 9:53 a.m.