R/toc.r

Defines functions toc

Documented in toc

#' @export
#' @rdname timer
toc <- function(){
  if (exists(".time_Jmisc")){
    out = Sys.time() - get(".time_Jmisc")
    print(out)
    return(invisible(out))
  } else {
    warning(".time_Jmisc not found, please run tic() before using toc()")
  }
}

Try the Jmisc package in your browser

Any scripts or data that you put into this service are public.

Jmisc documentation built on June 22, 2022, 9:09 a.m.