Start stopwatch timer

Share:

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

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

Arguments

gcFirst

gcFirst <- TRUE

type

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

Value

None

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

1
2
3
tic()
Sys.sleep(2)
toc()

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.