Learn R Programming

CINOEDV (version 2.0)

tic: Start stopwatch timer

Description

tic starts a stopwatch timer to measure performance. The function records the internal time at execution of the tic command. Display the elapsed time with the toc function.

Usage

tic(gcFirst = TRUE, type = c("elapsed", "user.self", "sys.self"))

Arguments

gcFirst
gcFirst <- TRUE
type
type <- c("elapsed","user.self","sys.self")

Value

None

References

None

Examples

Run this code
tic()
Sys.sleep(2)
toc()

Run the code above in your browser using DataLab