tic: Implementation of Matlab 'tic()' command

Description Usage Arguments Value See Also Examples

View source: R/ubiquity.r

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

1
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"

Value

time tic was called

See Also

toc

Examples

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

john-harrold/ubiquity documentation built on Dec. 5, 2019, 3:29 p.m.