tic: Implementation of Matlab tic() command
Description
Used in conjunction with toc() to find the elapsed time
when code is executed. Adapted from:
http://stackoverflow.com/questions/1716012/stopwatch-function-in-r
Usage
tic(gcFirst = TRUE, type = c("elapsed", "user.self", "sys.self"))Arguments
gcFirst
controls garbage collection
type
can be either "elapsed" "user.self" or "sys.self"
Examples
Run this code# NOT RUN {
tic()
Sys.sleep(3)
toc()
# }
Run the code above in your browser using DataLab