Learn R Programming

ubiquity (version 2.1.0)

tic: Implementation of Matlab tic() command

Description

Used in conjunction with toc() to find the elapsed time when code is executed.

Usage

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

Value

time tic was called

Arguments

type

can be either "elapsed" "user.self" or "sys.self"

See Also

toc

Examples

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

Run the code above in your browser using DataLab