Is there an R timer or stopwatch function similar to MATLAB\'s tic/toc?
As of the date 2015-03-25, and possibly earlier, the pracma package contains the functions tic() and toc().
tic()
toc()
Example:
> library(pracma) > tic() > for(i in 1:10000) mad(runif(10000)) # kill time > toc() elapsed time is 18.610000 seconds