R/tictoc.R

Defines functions toc

## Copyright (C) 2017 Thomas Lugrin
## tic and toc functions are provided by tictoc package,
## but need a wrapper around the latter
##################################################

#####################################
## CLOCK FUNCTIONS
toc <- function(silent = FALSE)
{
  tt <- tictoc::toc(quiet = TRUE)#list of 3
  ttic <- tt$tic
  ttoc <- tt$toc
  if(!silent) print(ttoc - ttic)
  invisible(ttoc - ttic)
}

Try the tsxtreme package in your browser

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

tsxtreme documentation built on April 24, 2021, 1:07 a.m.