Skip to content
Prev 321750 / 398500 Next

R process slow down after a amount of time

Le 16/04/13 15:52, Chris82 a ?crit :
I try your idea but I don't find anyt time difference. Could you more 
explicit ?

Marc

##### loop time ######

tm <- rep(Sys.time(), 1000)
k <- 1

for (i in 1:1e7) {
   if (i%%10000==0) {
     tm[k] <- Sys.time()
     k <- k+1
   }
}
plot(1:999, diff(tm), bty="n", type="l", ylim=c(0, 0.05))