exTime("yearSample")
exTime("yearSample", quiet=TRUE)
exTime(yearSample) # does NOT work, gives NULL and warning
exTime("yearSample", elapsed=TRUE, quiet=TRUE)
## this takes quite some time if done for all functions in the package:
## Not run:
# fn <- ls("package:berryFunctions")[1:7]
# ft <- rep(NA,length(fn)) ; names(ft) <- fn
# for(f in fn) ft[f] <- exTime(f, quiet=TRUE, elapsed=TRUE, run.dontrun=FALSE)
# as.matrix(sort(ft))
# system2("open", tempdir()) # to view the pdf graphics created by exTime
# ## End(Not run)
Run the code above in your browser using DataLab