## Not run:
# tmp <- timeit({
# x <- 1:1E4; y <- x + runif(1E4)
# lm( y ~ x )
# }, times=5)
# summary(tmp)
# y <- 1E4
# f <- function(x) { summary( sort( rnorm(x) ) ) }
# tmp <- timeit( f(y), times=5 )
# if( !is.null(tmp) ) {
# summary(tmp)
# mean(tmp)
# if( require(ggplot2) ) { plot(tmp) }
# }## End(Not run)
Run the code above in your browser using DataLab