timer | R Documentation |
Reporting of time elapsed since a given start time. This function is used internally by other functions in the package.
timer(start.time)
start.time |
A date-time object of class |
The function returns a message informing of the time elapsed since the input 'start.time'.
A. Marcia Barbosa
Sys.time
, proc.time
, difftime
# get starting time:
start <- Sys.time()
# do some random analysis:
sapply(rnorm(50000), function(x) x*5)
# see how long it took:
timer(start)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.