R/timeit.R

# Matt Galloway

#' @title Time-It
#' @description Simple function that prints the computation time of a function
#'
#' @param f the function to time
#' @return returns the elapsed time
#' @export

timeit = function(f) {
    
    # time function
    system.time(f)
    
}
MGallow/statr documentation built on May 7, 2019, 2:04 p.m.