system.time()

  • 処理時間の計測
system.time(for(i in 1:1000){sample(1:1000)})
   ユーザ   システム       経過  
      0.04       0.00       0.05