R/toc.R

Defines functions toc

Documented in toc

toc <-
function(){
  # time function for measuring, like 'toc' in Matlab
  #
  # Junliang Shang
  # 3.26/2014
  
  type <- get(".type", envir=baseenv())
  toc <- proc.time()[type]
  tic <- get(".tic", envir=baseenv())
  print(toc - tic)
  invisible(toc)
}

Try the CINOEDV package in your browser

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

CINOEDV documentation built on May 29, 2017, 9:07 p.m.